Jquery/jqmodal layout question

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?

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