[Rails] *Very* basic layout question

Jakob L. Skjerning jakob at mentalized.net
Sun Jan 22 16:21:34 GMT 2006


Santiago Hirschfeld wrote:
> 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.

Yeah, it's fine this way. Basically, Rails will do just that for you if 
you don't yourself. Doing it yourself just gives you a bit more control 
- and code.

-- 
Jakob Skjerning - http://mentalized.net


More information about the Rails mailing list