This project is archived and is in readonly mode.
layout is rendered by default for xhr request
Reported by styx | September 7th, 2010 @ 01:27 PM
Having in controller this one:
def attach_new
@task_id = params[:id]
end
and in attach_new.js.rjs:
page.replace_html(:upload_controls, :partial => 'attach_new', :object => @task_id)
page[:upload_dialog].show
page[:shadier].show
I'm getting the response which contains the application layout rendered. Is this right behavior?
Comments and changes to this ticket
-
Matthew Ford October 11th, 2010 @ 03:13 AM
Have you got
respond_to :js
in your controller?Might want to checkout: http://railscasts.com/episodes/224-controllers-in-rails-3
-
Ryan Bigg October 11th, 2010 @ 04:06 AM
- State changed from new to resolved
- Importance changed from to Low
Use respond_to :js for this.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>