Rails

From Rory.wiki

Jump to: navigation, search

General

Notes

rake routes shows the routes that are set-up for a given application

in routes.rb map.resources :model sets up the standard RESTful routes for a model.

in views

<% @models.each do |model| -%>
  <%= link_to "Link text", model_path(model) %>
<% end -%>

will set up links to the model object


in views

  <%= debug @object %>

Links & Resources

Rails Guides Getting Started

Rails 2.3 tutorial Rails with one Model

Rails 2.3 tutorial Rails with multiple models

Rails templates tutorial

Rails and Oracle tutorial

Active Scaffold

Formtastic

Rails Tutorial Book

rails 3 Notes

Personal tools