Hi, I have a view that I use to display and capture data. Once the user has input the required data, I then need to be able to print the view. I know that I can setup a stylesheet to take care of the page layout but it is not clear to me how I will make the print view call the new layout. If anyone could clarify this or point met in the right direction, I would be most grateful. Regards, Paul Using a different layout/styleshheet
In the action you render the template, use something like this: def my_action #do something render :layout=>''mylayout'' end having a mylayout.rhtml in app/views/layouts/ Paul Jonathan Thompson wrote:> to print the view. > I know that I can setup a stylesheet to take care of the page layout > but it is not clear to me how I will make the print view call the new
Paul Jonathan Thompson
2006-Jun-27 22:03 UTC
[Rails] Re: Using a different layout/styleshheet
Thanks Matias, just the pointer I needed. Paul On 28/06/06, Matias <matiassurdi@gmail.com> wrote:> In the action you render the template, use something like this: > > > def my_action > #do something > render :layout=>''mylayout'' > end > > having a mylayout.rhtml in app/views/layouts/ > > > > > > Paul Jonathan Thompson wrote: > > > to print the view. > > I know that I can setup a stylesheet to take care of the page layout > > but it is not clear to me how I will make the print view call the new > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >