25Jan

RVM (Ruby Version Manager) is a great tool that lets you install multiple versions of Ruby, Gems (Rails, etc.) all inside your home directory, so that it lives only within your user’s account and does not affect any system files at all. You can also create gemsets to maintain separate repositories of gems for different Continue Reading

28Nov

So I’m working on a project and obviously I wanted to take advantage of the built in AJAX in rails using UJS. I for some reason couldn’t find a good tutorial on how to do it so I figured I would just write one instead. Here’s the basics of how I solved it. I’m going to assume a couple of things to start so that this tutorial stays within scope.Continue Reading

29Oct

So I had a small issue the other day learning how to add a link to an image so I figure I would share with everyone on how I accomplished it. The key is that the link_to object can take a block and then you can add an image to the block like this:Continue Reading

13Aug

So you’re using Zend and you must be thinking, there has to be an easy way to authenticate users! Well, you can use Zend Auth and it makes it pretty damn easy. The basic concept is that it assumes that you have a combination of either a username/password, email/password or a combination of the two to authenticate your users. If you have something other than those combinations you may want to look at extending Zend_Auth instead of directly using it(that however it outside the scope of this tutorial). First off this tutorial assumes a couple things. One, that you know about the standard Zend Directory structure and two, that you have already setup a login form and are now working on authenticating the user. We’ll start off in the index action of your LoginController. That way you have the url as /login. First off we’ll check if the request is a post request:Continue Reading