Recent Changes - Search:

CIS 700

Ajax

Ruby

Rails

Second Life

Navigation


Penn PmWiki

pmwiki.org


edit SideBar

Corrections and Suggestions

Dave's A Concise Guide to Rails is an attempt to extract a guide to Rails from the various tutorials and textbooks (almost all of which are just extended tutorials).

Your corrections, and your suggestions for material that should be added, are most earnestly desired. As the above paper is not in a wiki, you cannot edit it directly, so please post your comments here instead. Thank you!


Suggestion: Add a few lines in the section Models > Useful Methods about record.blank? and records.empty? to tell if no records are returned by find_ and find_all_ (respectively).


Suggestion: In the Getting Started > Create the Application section, the port in the url http://localhost:3000/ isn't always 3000. The DOS window that Mongrel opens tells you what port it's using for the app just started, so use that one.


Suggestion: It took me a few guesses to work out the syntax for referring to individual form elements in Rails-generated forms. For example, after the form to edit a course is submitted, params[:course] will refer to the entire collection of course fields, but it took me a few minutes to figure out that params[:course][:number] would refer to the course number field. This could be added to the Controllers section near where URL parameters are mentioned.

Edit - History - Print - Recent Changes - Search
Page last modified on August 05, 2007, at 08:44 PM