This project is archived and is in readonly mode.
render :xml and render :nothing with layouts
-
Ryan Bigg
Given the lack of discussion this ticket I would suggest this is a wont-fix.
-
Ryan Bigg
- Assigned user set to Mikel Lindsaar
-
José Valim
- State changed from new to resolved
- Assigned user changed from Mikel Lindsaar to José Valim
Both were fixed in Rails 3. In fact, in Rails 3 render :text => "" is preferred then render :nothing => true.
About the xml case, it won't accept a layout due to exempt_from_layout config. If you remove it, it should work.
-
Aaron Gibralter
exempt_from_layout is not in Rails 3, right?
Also, will
render :xml => @user, :layout => 'default'andrender :json => @user, :layout => 'default'work in Rails 3? -
Aaron Gibralter
exempt_from_layout is not in Rails 3, right?
Also, will
render :xml => @user, :layout => 'default'andrender :json => @user, :layout => 'default'work in Rails 3? -
José Valim
In Rails 3.0, if you have a xml layout, it will be automatically picked.