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:   Quick Issue
Date:   2006-03-07 12:24:05
From:   VineetBansal
Response to: Quick Issue

I had the same problem - a more elegant way to solve this, that I figured out after looking at the auto-generated scaffolding code, is to handle the 'index' action like this:


def index
list
render :action => 'list'
end