Bug or intended behavior when using respond_to?

respond_to do |format|
format.js
end

Works as expected in most instances. However…

Inside name-spaced controllers and custom REST actions I must specify…

respond_to do |format|
format.js { render(:layout => false) }
end

Otherwise Rails complains about not being able to find a layout.

Anyone else seen this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs