I have an application, where i.e., I can go to the users controllers, and they manage all the basic actions by rest, like creating, modifying, updating and deleting records.
Now, I want to reuse that code, from another part in the web page, so I can list the users on that other controller, and if I press on add, I want the users/new page to open, in a popup (like facebox or anything like that) but without breaking the code that I already have for managing the users (since I want to modify the users for the both places). The main problem is that for the popup, I need another layout to be displayed, and once the record is created/updated, I need to display a message status instead of redirecting back the user to the users index. Is there a pattern, a tutorial or something you can point me at so I can figure out the best way to do it? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.