Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WelcomeController < ApplicationController
- def index
- end
- def perform
- @person = Person.new(params[:person])
- if @person.save
- redirect_to :action => "thanks"
- else
- if request.xhr?
- render :partial => "form"
- else
- redirect_to :back
- end
- end
- end
- def thanks
- end
- def contacts
- end
- def rules
- render :layout => false
- end
- end
Add Comment
Please, Sign In to add comment