ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails
Subject:   List action
Date:   2006-07-30 11:27:56
From:   Damaris
Hi you all,
I was wondering if I have to do a new action in the Controller for just render another view. With the example of listing all the recipes, we have created a new "list.rhtml" in the view. However, we also create a "list" action in the Controller that, if I am not wrong, do the same as the list of the scaffold. I've commented the list action and rails take my list.rhtml to show, so...what is the point of this list action?