I have select box in one of my views which lists a few contacts.
I also have an option in this select box to add a new contact.
There is also an observe_field hook to this select box that Ajax
requests further info about the selected contact from the controller
and displays it in an adjacent "info" div.
Now, I need to redirect the user to the New Contact page from the
controller if the selected value from the select box is "new contact".
This is the controller code I have now
render :partial => "show", :layout => false
elsif params[:id] == "new contact"
render :text => "Please select a contact"
This renders the New Contact page in the "info" div. Whereas, I want
the user to be completely redirected to the New Contact page like a
HTTP response would.
Any thoughts on how I can handle this? Any ideas welcome..