RailsCasts Pro episodes are now free!
Learn more or hide this
map.resources :projects map.task_archive 'tasks/:year/:month', :controller => 'tasks', :action => 'archive' map.home '', :controller => 'projects', :action => 'index'
<ul> <% for project in @projects %> <li> <%= link_to project.name, project_path(project) %> | <%= link_to "Edit", edit_project_path(project) %> | <%= link_to "Destroy", project_path(project), :method => :delete %> </li> <% end %> </ul> <p><%= link_to "New Project", new_project_path %></p>