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?