search for: email_confirmation

Displaying 8 results from an estimated 8 matches for "email_confirmation".

2006 Aug 16
6
modeling ''phony'' fields.
...y change their email address, I want them to confirm their email address by typing it in again. However, the user might change things on their account not related to their email address, such as their phone number, and they should not have to confirm their email address. I suppose I can add an email_confirmation field to the database, and then use validates_confirmation_of :email But, this seems rather wasteful and silly to store both the email and the email_confirmation. I understand that the model need not store the field in the database, but then in that case User.find(:first) ... fiddle with a...
2007 Feb 01
3
should_redirect_to in rspec-0.8.0 / rspec_on_rails 1453
I have a spec: specify "a post with no user id should add a record" do post :edit_or_create, :user => {:login => ''joeschmoe'', :email => ''joe at shmoe.com'', :email_confirmation => ''joe at shmoe.com'', :full_name => ''Joe Schmoe''} assigns[:user].should_not_be_nil assigns[:user].new_record?.should_not_be(true) flash[:notice].should_match(/user added/) response.should_be_redirect puts "redirecting to #{r...
2010 Aug 10
3
ActiveRecord::UnknownAttributeError: unknown attribute: <script type
Has anyone seen this happening to their apps? I''m starting to get errors like this come across from one of my apps: ActiveRecord::UnknownAttributeError: unknown attribute: <script type The parameters being sent are: {"user"=> {"email_confirmation"=>"someone-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org", "wants_new_message_notifications"=>"1", "is_admin"=>"0", "<script type"=>"=MyLastName", "first_name"=>"MyFirstName", &...
2006 Apr 13
1
Model is not a class
I''m trying to specify a model in a controller, but rails gives me "Account is not a class", where Account is my model name ... This is my model: class Account < ActiveRecord::Base validates_presence_of :email, :email_confirmation, :username, :password, :password_confirmation validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i validates_uniqueness_of :username validates_length_of :password, :within => 6..20 validates_confirmation_of :email, :password def self.authe...
2012 Aug 15
0
Devise access customer information without password
...ty looks <%= form_for(@customer) do |f| %> <fieldset> <div class="cus"> <%= f.label :email %> <%= f.text_field :email %> </div> <div class="customer_edit_confirmation"> <%= f.label :email_confirmation, "Confirm Password" %> <%= f.text_field :email_confirmation %> </div> </fieldset> <div class="customer_edit_button"> <%= f.submit "Save changes", class: "button_accept" %> </div> &...
2012 Aug 15
0
Devise email confirmation field
...n a field has follow. This was easy in rails but with devise this seem to be hards. Email: Email Confirmation: I also would love in my edit user a field that say Change Email: Confirm Change of Email: Of some sort, but just placing this doesn''t seem to do the trick. <%= f.label :email_confirmation %><%= f.email_field :email_confirmation %> Any help or guidance on how to achieve this would be greatly appreciated. Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t...
2007 Feb 04
10
Spec''ing ActionMailer
Good morning (Pacific Time). I have a controller action that, as a side-effect, sends an email to an administrator. I want it to do something like this: specify "when someone successfully signs up, an email should be sent to the administrator with the person''s contact page" do post :signup, {...lots o'' params} response should_be success #
2008 Feb 07
11
Multiple Views within subfolders
Hi, I am creating an application in which I am allowing users to have customized views of a form. These forms do not have to be customized at this point by the user, but will for now be customized by us, and uploaded to the server. My idea was to take the similar approach done by the plug in acts_as_attachment, and, have a default layout stored in the normal views/controller_name folder, but