Displaying 1 result from an estimated 1 matches for "employee_list_row_data".
2010 Jun 24
0
Rails3: render_to_string of a .html.erb when request is a json request raises MissingTemplate error
...p => render_to_string(:partial =>
''some_partial'') }
Then the ajax result handler replaces the row with the data from the
json result.
This is 100% functional code in rails 2.3.8, but raises
MissingTemplate exception:
ActionView::MissingTemplate (Missing partial employees/
employee_list_row_data with
{:handlers=>[:haml, :builder, :erb, :rjs, :rhtml, :rxml], :formats=>[:json, :js, :"*/
*"], :locale=>[:en, :en]} in view paths ...
So it seems that the requested formats are used to search for the
templates.
First question: is this change deliberate? Is it now necessary to...