I trying jqmodal for popup dialogs and running into a problem.

jqmodal lets you specify a div containing content for the popup dialog
and renders it for you. The dialog is hidden initially and then you
use a show cmd in JS to reveal it.

I'm filling the content with a partial.

The prob I'm having is that I'm getting my general application layout
rendered into the popup as well and I dont want that.

I thought I could do a conditional layout in my controller for the
action corresponding to the content of the popup, but that doesnt seem
to get hit and I always end up with the layout rendered.

I also thought I could do something like this:

<%= render :partial => 'partial', :layout => 'popup_layout' %>

based on reading here (section called "Rendering partials with
layouts"): http://api.rubyonrails.org/classes/ActionView/Partials.html

but when I do that I get:

Missing template controller_name/_popup_layout.erb in view path ... In
other words, it thinks the layout is the partial name.

Any ideas either specific to jqmodal or rendering partials with a
particular layout?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to