Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

layout is rendered by default for xhr request

#5571

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?

Reported by styx · September 7th, 2010 @ 01:27 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Matthew Ford
    Matthew Ford

    Have you got respond_to :js in your controller?

    Might want to checkout: http://railscasts.com/episodes/224-controllers-in-rails-3

    October 11th, 2010 @ 03:13 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to resolved
    • Importance changed from to Low

    Use respond_to :js for this.

    October 11th, 2010 @ 04:06 AM