views:

28

answers:

1

<%= button_to_function("Complete an Offer", "ABA.dialogs.offer(#{???}, {title: 'Complete an Offer'});", :title => "Complete an Offer") %>

When a user clicks the button, I want an iframe* to pop-up in a separate dialog box. Any pointers?

*

+1  A: 

Aside from a simple js alert box, Rails doesn't have anything for this out of the box. You could roll your own making a custom helper to do what you want or try using a plugin like facebox_link_to.

http://handlino.com/blog/2008/02/26/57/

holden