0

in the previous rails versions you ran

rail whatevertheappsname -d mysql 

what is the new way and how do you generate scaffolds and controllers/migratations ext..

2 Answers 2

2

You want:

rails new whatevertheappsname -d mysql 

Generation of scaffolds/etc. is like this:

rails generate scaffold blah name:string content:text ... rails generate migration add_field_to_blah ... 

Hope that helps!

Sign up to request clarification or add additional context in comments.

Comments

0

Also, might be worth checking out: http://railscasts.com/. The last few episodes have been dedicated to switching to Rails 3 and are very helpful.

1 Comment

Definitely, Ryan Bates has a winner in Railscasts. One of the few things I look forward to on Monday mornings.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.