search for: render_json_search_partial

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

2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
...ion_partials function partial = render_to_string( :partial => "#{file}", :formats => [:html] ) respond_to do |format| format.json { render :json => pagination_partials(file, partial, options), :status => 200 } format.html end end def render_json_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] ) render :json => pagination_partials(file, partial, options), :status => 200 end def...