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 via http://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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---