Created
February 18, 2011 17:47
-
-
Save deepakprasanna/834069 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> | |
<%= devise_error_messages! %> | |
<% require 'pp' %> | |
<%= pp resource %> | |
<p><%= f.label :first_name %><br /> | |
<%= f.text_field :first_name %></p> | |
<p><%= f.label :last_name %><br /> | |
<%= f.text_field :last_name %></p> | |
<p><%= f.label :title %><br /> | |
<%= f.text_field :title %></p> | |
<p><%= f.label :direct_phone %><br /> | |
<%= f.text_field :direct_phone %></p> | |
<p><b>Brokerage company Info </b><br /></p> | |
<p><%= f.label :brokerage_company_name %><br /> | |
<%= f.text_field :brokerage_company_name %></p> | |
<p><%= f.label :phone %><br /> | |
<%= f.text_field :brokerage_company_phone %></p> | |
<p><%= f.label :address %><br /> | |
<%= f.text_field :address %></p> | |
<p><%= f.label :address1 %><br /> | |
<%= f.text_field :address1 %></p> | |
<p><%= f.label :city %><br /> | |
<%= f.text_field :city %></p> | |
<p><%= f.label :state %><br /> | |
<%= f.text_field :state %></p> | |
<p><%= f.label :zip %><br /> | |
<%= f.text_field :zip %></p> | |
<p><%= f.label :company_url %><br /> | |
<%= f.text_field :company_url %></p> | |
<p><%= f.label :your_speciality %><br /> | |
<% ['office', 'industrial', 'medical', 'retail'].each do |speciality| %> | |
<%= check_box_tag 'user[specialities[]]', speciality , | |
(resource.specialities || {}).include?(speciality) %> | |
<%= speciality.humanize %> | |
<% end %> | |
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> | |
<%= f.password_field :password %></p> | |
<p><%= f.label :password_confirmation %><br /> | |
<%= f.password_field :password_confirmation %></p> | |
<p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> | |
<%= f.password_field :current_password %></p> | |
<p><%= f.submit "Update" %></p> | |
<% end %> | |
Started POST "/" for 127.0.0.1 at 2011-02-18 22:51:59 +0530 | |
Processing by Devise::RegistrationsController#update as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4krasuh10bp2ZbxLglZecmnKUdR/AWmGm0mv555uV5M=", "user"=>{"first_name"=>"Deepak", "last_name"=>"Prasanna", "title"=>"", "direct_phone"=>"", "brokerage_company_name"=>"", "brokerage_company_phone"=>"", "address"=>"", "address1"=>"", "city"=>"", "state"=>"", "zip"=>"", "company_url"=>"", "specialities"=>[nil, nil, nil, nil], "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update"} | |
MONGODB broker_development['users'].find({:_id=>BSON::ObjectId('4d5e87de0461ae17ae00000a')}) | |
MONGODB broker_development['users'].find({:_id=>BSON::ObjectId('4d5e87de0461ae17ae00000a')}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment