Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def disclaimer
- redirect to :action=> details if current_person.family.people.where(:is_invited_ceremony => true).count == 0 or current_person.family.accepted_disclaimer
- if request.post?
- if params[:disclaimer][:agree] == "1"
- current_person.family[:accepted_disclaimer] = true
- redirect_to :action => :details
- else
- flash[:notice] = "You must read and agree to this information before continuing."
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement