RubyOnRails, aka RoR or rails, is a web development framework written in Ruby.
It's awesome. :)
Books
Tutorials
Documentation
Other
puts “Output to Console Now!”script/generate scaffold group name:string not script/generate scaffold groups name:string). Rails will automatically pluralize the word for you when you scaffold. Otherwise, the result is a NameError in ######Controller with a message such as uninitialized constant ######Controller::###### (where ###### is the controller's name).@book.pages.find(params[:id]) rather than Pages.find(params[:id]). This helps to ensure that the specific page belongs to the book making everything more secure. When creating a new page for a specific book, try @book.pages.new(params[:page]). This automatically associates the page with the book so you do not need to edit page.book_id. The find and new methods behave exactly the same as the ActiveRecord's find and new methods (they can accept more than just the params[] that were used in the example). Other things to note, @page.book returns the book object the page belongs to. @book.pages returns a collection of all pages belonging to it. These associations will make the code cleaner and save time.