[Rails] Re: CRUD pattern for modals

2010-02-11 Thread Sharagoz --
Another option is rb-lightbox, which is made for RoR (and depends on prototype) http://code.google.com/p/rb-lightbox-plugin/ It gives you functions like "link_to_lightbox" and "link_to_remote_lightbox" (ajax). -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: CRUD pattern for modals

2010-02-11 Thread Gourav
If you really want to have a pop-up and don't want to deal with Ajax at all, then I would suggest fancybox It is actually an iframe, but gives you a popup like feeling and you can use your normal controller, just that in click of a link, it will open the fancybox and serve you

[Rails] Re: CRUD pattern for modals

2010-02-10 Thread Adam Stegman
The popup sounds like some AJAX. You can create JavaScript views for your actions (action.js.erb) and use XHR with an Accept: text/ javascript header to get those views (probably users/index.js.erb and users/new.js.erb), and do the popup etc. within that. Similar course of action for users/create.j