if you really just want one of those instead of two, if you do it the RESTful way: get rid of the list action, and stick with just the index action.
daniel On Nov 17, 10:29 am, Jigar Gosar <[EMAIL PROTECTED]> wrote: > This is my current ActionController code. > > def index > list > render :action => 'list' > end > > def list > end > > I wished this would work > > alias index list > > def list > end > > But the problem is rails tries to render index.rhtml, instead of > list.rhtml when index action is invoked. > > I want to be able write something like this > > action_alias index list > > which would add a method index to the class programatically. > > please advise > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---