On Oct 28, 2010, at 11:53 AM, Frederick Cheung wrote:
On Oct 28, 2:56 pm, PalaniKannan K <[email protected]> wrote:
Main requirement -> render the same source with different params in
a single
page as second table output. I tried with
render : 'index', :params => {:gm => prefer.name, :sp => sp}.
But I am getting "double rendering error". As render option fails
with above
requirement, I choosed frames to render the different params to
execute with
same source. If you have idea to render the same source file with
different
params, Kindly give me suggestion.
split your output into partials? Then from your view you can render
your various partials in as many different ways that are needed
If you're working in TextMate, there's a macro built in that will do
this for you. Highlight a section of the main view, choose Bundles/
Ruby on Rails/ERb Templates/Create Partial From Selection. It will
prompt you for a partial name, then replace the snippet with a proper
render call and create the properly-named partial in one go.
Blammo. Done.
Walter
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" 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-talk?hl=en.