I have an action:
@settings = Setting.all(:order => ‘name’)
respond_to do |format|
and corresponding views:
So what’s happening is that for HTML requests the HTML template will
I want the HTML template to be rendered as a string into the
that dialogs have a separate layout file, dialog.html.erb.
snippet where I’ve typed “render XXX”? I’ve looked at render_to_string
but that breaks MVC by taking view material into the controller.
Ideally, I’d like something like render(:action =>
‘index.html.erb’, :layout => ‘dialog’) (note index.html.erb to
distinguish it from index.js.erb) and have this rendered inline.