I have a custom format that I'm using called 'desktop'.
I have an action which is called via AJAX, and I'd like to update a div
in my page with a partial.
The request comes in with params[:format] == 'desktop', and my partial
is named _search_results.desktop.erb
However, when I do this in my action:
respond_to do |format|
format.desktop {render :update do |page|
page.replace_html('search_results', :partial =>
'search_results')
end}
end
I keep getting errors about missing _search_results.html.erb.
Can you not use a custom format with the render :update do |page| idiom?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---