<%= 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?
*
<%= 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?
*
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.