In my routes.rb
I have the following:
get "contact" => "inquiries#new"
So that when I go to /contact
in the browswer, it calls the InquiriesController
's new
action.
Now when I try to call render "new"
in the create action inside InquiriesController
:
def create
…
render "new"
end
The resulting url in the browser is /inquiries
.
Is there a way besides calling redirect_to
to render "new"
but have the url as /contact
in the browser?