Technology Forward

Moving forward with technology

Ever coded tired

Trying to learn Ruby on Rails is difficult enough when one doesn’t have a high level programming language background. Add that to running 6 miles before you get home and you have a recipe for the most common of errors, human.

I was working through the RailsSpace book last night and was in the section where I learn about sessions. I made a pretty common mistake. There is a section of the code the says after you save the user to the database you can set the user session. The code roughly looks like this session[:user_id] = @user.id. Well, I had wrote the code as follows session[:user_id] = @user_id. Notice the little underscore instead of the period. It took me over 30 minutes and 3 reference books to figure out what was going on.

Now, I know that no one out there has ever done anything like this. Have you? Post your reply to the comments.

August 21, 2007 - Posted by tszao | agile development, coding, ruby on rails | | 2 Comments

2 Comments »

  1. Hi,

    I’ve been trying to get jBPM up and running and was seriously struggling to find any useful installation guides. Then I found your website and u basically saved me a whole heap of trouble.

    Just wanted to say thanks for taking the time to write this blog, and for giving the step by step instructions to getting jBPM up and running.

    Comment by Devinder Chauhan | December 14, 2007

  2. You are most welcome. I just wish I was getting more experiece with it. Enjoy.

    Comment by tszao | December 14, 2007

Leave a comment