From 045ffd3541a096df087c7d42bc411400f3619cf6 Mon Sep 17 00:00:00 2001 From: Matt Barringer Date: Mon, 11 Feb 2013 18:21:39 +0100 Subject: [PATCH] Specify that people registration fields should mostly be single line text inputs --- app/views/devise/registrations/edit.html.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/devise/registrations/edit.html.haml b/app/views/devise/registrations/edit.html.haml index a7cac5a1..26990e5f 100644 --- a/app/views/devise/registrations/edit.html.haml +++ b/app/views/devise/registrations/edit.html.haml @@ -3,9 +3,11 @@ = semantic_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| = f.inputs :name => "Profile" do = f.fields_for :person do |p| - = p.inputs :first_name, :last_name, :public_name + = p.input :first_name, :as => :string + = p.input :last_name, :as => :string + = p.input :public_name, :as => :string = 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." + = p.input :company, :label => "Affiliation", :as => :string, :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." = p.input :biography, :input_html => {:rows => 5, "onkeyup" => "word_count(this, 'biography-count', 150)"}, :for => :person