Archive for May 28th, 2008

Wednesday, May 28th, 2008

Rails 2 new ways

Problem
To get used to the new ways of working with Rails 2.
Solution
Here are some of the new ways of doing things in Rails 2.

Create a scaffold and migration on one step:
./script/generate scaffold product fied1_name:string field2_name:string field3_name:float
Make sure that you don’t have any previous migration(ie manually created) for the same model, as the generator [...]

No Comments » - Posted in ruby on rails by kosmas