diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/user.rb | 2 | ||||
| -rw-r--r-- | app/views/registrations/edit.html.erb | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 1cf4c8d1..33a9e8a1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -2,7 +2,7 @@ class User < ActiveRecord::Base validates :name, :presence => true has_many :authentications devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable - attr_accessible :name, :email, :website, :password, :password_confirmation, :remember_me + attr_accessible :name, :email, :website, :twitter, :facebook, :password, :password_confirmation, :remember_me has_many :creations, :dependent => :destroy has_many :favorites, :dependent => :destroy diff --git a/app/views/registrations/edit.html.erb b/app/views/registrations/edit.html.erb index c76ab961..9749954d 100644 --- a/app/views/registrations/edit.html.erb +++ b/app/views/registrations/edit.html.erb @@ -46,6 +46,14 @@ <%= f.label :website, :class => "control-label" %> <div class="controls"> <%= f.url_field :website, :class => "input-xlarge, url", :placeholder => "http://cakeside.com" %> </div> </div><!-- /control-group --> + <div class="control-group"> + <%= f.label :twitter, :class => "control-label" %> + <div class="controls"> <%= f.text_field :twitter, :class => "input-xlarge", :placeholder => "@CakeSide" %> </div> + </div><!-- /control-group --> + <div class="control-group"> + <%= f.label :facebook, :class => "control-label" %> + <div class="controls"> <%= f.text_field :facebook, :class => "input-xlarge", :placeholder => "http://www.facebook.com/your_profile" %> </div> + </div><!-- /control-group --> <div class="form-actions"> <input type="submit" class="btn btn-primary" value="Save changes" /> <button type="reset" class="btn">Cancel</button> |
