Use render instead of redirect if registration/create fails
This commit is contained in:
parent
243f33ff91
commit
bae0be338a
5 changed files with 53 additions and 42 deletions
|
|
@ -4,6 +4,7 @@ class Person < ActiveRecord::Base
|
|||
|
||||
attr_accessible :email, :first_name, :last_name, :public_name, :biography, :company, :avatar, :irc_nickname
|
||||
|
||||
belongs_to :user, :inverse_of => :person
|
||||
has_many :event_people, :dependent => :destroy
|
||||
has_many :events, :through => :event_people, :uniq => true
|
||||
has_many :registrations, :dependent => :destroy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue