Add IRC nick to the Person page

This commit is contained in:
Matt Barringer 2013-02-11 18:10:43 +01:00
parent 93b7d17e23
commit 4b0887e0f3
3 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
class Person < ActiveRecord::Base
attr_accessible :email, :first_name, :last_name, :public_name, :biography, :company, :avatar
attr_accessible :email, :first_name, :last_name, :public_name, :biography, :company, :avatar, :irc_nickname
has_many :event_people, :dependent => :destroy
has_many :events, :through => :event_people, :uniq => true

View file

@ -4,6 +4,7 @@
= f.inputs :name => "Profile" do
= f.fields_for :person do |p|
= p.inputs :first_name, :last_name, :public_name
= p.input :irc_nickname, :label => "IRC nick:"
= p.input :company, :label => "Affiliation", :hint => "This could be a company, a user group, or nothing at all."
= image_tag current_user.person.avatar(:small)
= p.input :avatar, :label => "Picture", :hint => "Upload a new picture."