Ruby on Rails
TipSheetForBeginners

Things I didn’t get from the tutorials. And really needed to know (or remember, or have to look up every ten seconds).

Getting Started

To create a new rails website:

rails newrailsappname

SQLite is the recommended database for development, but not for production. To create a new rails 2.0 SQLite website:

rails -d sqlite3 newrailsappname

To create a new rails 2.0 MySql website:

rails newrailsappname -d mysql newrailsdbname

To create your controllers and models:

ruby script/generate model user 
ruby script/generate controller admin

ruby script/generate without any options gives you a list of things it can generate, and ruby script/generate _type_ gives you further help.

Beginning

Intermediate

General

Translations