Thursday, January 24, 2008

Quick fixes for Ruby on Rails

Hi everybody,i just finished my first Rolling with Ruby on Rails tutorial and thought this might be very useful for those on the start up too.

I have included all the errors i have come across so that getting the Rails machine running is as fast as it should be

1. Starting the web server : In linux avoid the backslashes use /

change ruby script\server to ruby script/server

if this fails try : ./script/server this should get the server running.

2. As you progress with the tutorial you will meet this a couple of times :

change render_text to render :text =>

find_all to find(:all)

@params [] to params []

This will save you some great deal of time ,you will avoid the method not found and other errors

3. for pagination errors install the will_paginate with :

script/plugin install svn://errtheblog.com/svn/plugins/will_paginate

if this still fails try the classical_pagination

script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination

Hope this helps someone out there.Will keep on posting the fixes as i Roll like everybody else!!!





No comments: