[Rails] *Very* basic layout question
Santiago Hirschfeld
jsantiagoh at gmail.com
Sun Jan 22 15:38:43 GMT 2006
Thanks, I did
def some_action
.....
render(:action => 'some_action', :layout => 'simple')
end
And it worked fine, but i wonder if there is right to render an action
from the same action =) sorry for another stupid question, but I'm
curious.
Thank you for, very much.
2006/1/22, Jakob Skjerning <jakob at mentalized.net>:
>
> On Jan 22, 2006, at 15:43, Santiago Hirschfeld wrote:
>
> > I'm trying to use a different layout for just one action in my
> > controller, all the other actions use the application.rhtml layout,
>
> I'm not sure why what you already have doesn't work, but instead just
> do render(:action => 'some_action', :layout => 'simple') in your action.
>
> --
> Jakob Skjerning - http://mentalized.net
>
>
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
More information about the Rails
mailing list