search for: render_format_search_parti

Displaying 1 result from an estimated 1 matches for "render_format_search_parti".

2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
...clean my code by moving the duplicated lines : partial = render_to_string( :partial => "#{file}", :formats => [:html] ) to the pagination_partials function. ================================================= WORKING CODE: ================================================= def render_format_search_partial(file, options={}) # TODO remove this line to use the one in the pagination_partials function partial = render_to_string( :partial => "#{file}", :formats => [:html] ) respond_to do |format| format.json { render :json => pagination_partials(file, partia...