search for: confirm_new_entry_url

Displaying 1 result from an estimated 1 matches for "confirm_new_entry_url".

2010 Mar 15
3
Before_filters on re-rendered methods - what is the correct RAILS way?
...filter :require_user, :only => [:create] # ==new # new_entry_url (GET /entries/new) def new # Display user a form page where they can fill # in details of a new entry, which will then # submit a post request to "confirm" end # ==confirm # confirm_new_entry_url (POST /entries/new/confirm) def confirm # Check params for button type so we can still handle it # as a "post" request without redirection if params["next"] # Validate entry and present user with a confirmation page # so they can ch...