Why don't you make that action you are aliasing to, render the
template you want it to render.

render :template => "somedir/somefile"

On Nov 17, 3: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
-~----------~----~----~----~------~----~------~--~---

Reply via email to