Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # action: la
- # Displays contact form. If no js I want to render back to 'oc' with errors, if js then render inline/partial. Form goes to action: process.
- # action: oc
- # Displays contact form. If no js I want to render back to 'oc' with errors, if js then render inline/partial. Form goes to action: process.
- # Both of those don't even exist in the controller since there's no need for them, they just have view files.
- # action: process
- if @person.save
- redirect_to :action => "thanks"
- else
- if request.xhr?
- render :partial => "form"
- else
- redirect_to :back # "My Last action"
- end
- end
Add Comment
Please, Sign In to add comment