Hi i am trying new things these days. I am working on an application in rails 3.0.6.
In my application in a form I want to add a new item in a list box by popping a window. i. e. I have a link "add new" with list box, when user click on that link a popup open with form and when a user fill up all the details and save the entry, the pop up should close and the item should be added in the list box. I am apologies if any one suggest a good answer in advance.
Hi am using “nyroModal” for this and i have to just link the form i want to pop up
<%= link_to 'Feedback', new_feedback_path, :class => "nyroModal" %>
I got this from:
nyroModal - jQuery Plugin
* http://nyromodal.nyrodev.com
and nothig to do with controller, just disabling the layout for that window.
hey ravi try this in your feedback controller in create method when you want to redirect on back screen.
format.html { redirect_to :back, {:notice => 'Feedback was successfully created.'}}