I have generic views for CRUD operations
For example I render(‘shared/list’) from controller
<% for item in @list %>
As you see I also need to render :partial => ‘list’ on every iteration
to add some custom information for a particullar controller.
As you may already guess I’m getting ActionController::DoubleRenderError
So is there better way of doing this, or maybe some other function
method such as: render_and_not_raise_DoubleRenderError exist?
Someone proposed to use render_to_string, but it does not work in views.
Or creating an array with items in controller that will be used in
template to populate the view. But its not MVC way of doing things.
I mean common! It should be simple, as a method call!
Thanks for help!