views:

6399

answers:

8

I want to use modal pop-up windows in our web app in Ruby on Rails. Note that I don't want to create a new browser window, but a sub-window inside the existing webpage. We've tried things like TinyBox, but there are issues with returning error information from inside the controller. Any good method or tool that works well in ruby?

+3  A: 

I've never used it myself (not yet at least) but have you tried RedBox?

Mike
Redbox looks pretty basic. Does anyone know how to get it making some nice (transparent) borders etc like linkedin or facebook? Would like to get something that is a littler prettier, for lack of a better word.
Brian Armstrong
+1  A: 

I've used Lightbox Gone Wild for a while now, though I've modified it to display a DIV or other element that's already on the page (though hidden) and then return it to it's parent when the box is closed. I've used it make make Wizards that guide the user through a process.

Daniel Beardsley
+2  A: 

There's also prototype-window.

salt.racer
Worked with is some and its easy and powerful to use.
Tilendor
A: 

I'm investigating ModalBox at the moment and it's looking promising.

There's a Google Group and Rails plugin which replaces the basic confirm popup with a modal dialog box.

mlambie
+1  A: 

Try TopUp! It is developed in a Rails application and you can get it from GitHub. Please note that it is still beta. Feedback is always welcome ;)

A: 

I've used facebox_render for all my rails projects. It's really easy to use and provided complete helper. You can easily render html or javascript in your RESTful controller.

Yi-Ru Lin
+2  A: 

Facebox, jquery, that Github use is the best one. There is also a prototype version.

railsninja
Sweet! I always wanted to use facebox but couldn't justify loading jquery on top of prototype JUST for that. Awesome to know there is a prototype version, thanks!
Brian Armstrong
A: 

I have tried several of the ones mentioned above but after twiking it a bit I found that http://www.methods.co.nz/popup/popup.html works better for me, the only problem is that you have create an error routing similar to the one Rails uses, when returning to the popup window with errors the pop up window does not have a way to handle it

Jorge Cea