Jigar Gosar escribió: > 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 > Maybe you can play with routes.rb Regards
-- Rafael Garcia Ortega --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
begin:vcard fn;quoted-printable:Rafael Garc=C3=ADa Ortega n;quoted-printable:Garc=C3=ADa Ortega;Rafael org:ASPgems S.L. email;internet:[EMAIL PROTECTED] tel;work:692686533 x-mozilla-html:FALSE url:http://www.aspgems.com version:2.1 end:vcard