Displaying 20 results from an estimated 300 matches similar to: "Devise Invitable and Validations -- what's the right way to do this?"
2011 Jul 14
3
Have Admin add users, not the Devise Sign Up form
I have Devise working. I have roles for users working. I even added
custom fields to the User model and it seems that now everything is
working fine. So people can now subscribe using the Sign Up form
provided by Devise.
But now I need Admins, to add users. Of course, I can''t use the Sign Up
form for that. If I just use a regular User model, their passwords are
blank. Or maybe the form
2011 Jun 27
0
Devise Invitable mailer -- how to force text/plain e-mail?
I am using Rails 3.09 and the latest Devise and Devise Invitable. I am
able to make Devise send confirmation messages as text/plain just by
adding a view properly named to the views/devise/mailer folder.
Invitable keeps its views in views/users/invitations/mailer, but
changing the name of the file (and the contents) does not seem to
affect this at all. Instead, the view is being loaded
2011 Jul 06
0
uninitialized constant
I''m using devise, wich works fine, now I try to use devise_invitable.
I installed it correctly, but I''m getting the error when I try to access
http://localhost:3000/users/invitation/new
The error is:
Started GET "/users/invitation/new" for 127.0.0.1 at 2011-07-06 20:47:07
-0300
ActionController::RoutingError (uninitialized constant Users):
Rendered
2010 Aug 09
0
Devise :current_password validations and checking (how???)
Hi Guys,
In my devise applications in Rails 3, I created a separate form under my
SettingsController class of which it handles the ''Change Password'' of
the User Model, so i can manipulate the current_user in the
SettingsController.
Now, I followed the set-up in the Devise/Views on how to update the form
using ''Change password'' and either way update User for
2010 Nov 10
0
Devise - Configuring the Routes fine for Controller Inheritance
Hi!
Here''s what I added to my config/routes.rb:
devise_for :users, :controllers => {:invitations =>
"invitations", :sessions => "sessions"}
This doesn''t work, if I try to sign in I get a template missing error.
How do you configure this for controller inheritance for invitations
and sessions? And make the routes in the controller like
2013 Jan 07
9
Devise Admin View password
Hi Everyone
i am using devise for authentication for my app.
Is there any way, Admin user can view other users password as normal string.
Without storing there password as string in database?
Please advise.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Nov 12
1
Devise after_sign_up_path_for - how to?
Hi,
I''m new to devise and I''m having a problem overwriting a controller.
After sign-up I want the user to go to a static page.
In the controllers folder I have created
users/registrations_controller.rb
class Users::RegistrationsController < Devise::RegistrationsController
def after_sign_up_path_for(resource)
puts "If I coould see this..."
2013 Mar 09
1
Rails- Devise- confirmable- confirmation email not received
In an application I use devise authentication. I added confirmable.During
sign up, message is that email has been sent. But email is not received in
my gmail account. How can I solve this problem. Do I need to add other
options as we do with actionmailer such as gmail port address, or sendmail
such things. Please help.
--
You received this message because you are subscribed to the Google
2012 Feb 28
0
Devise with two emails
Hi, I''m trying to setup a User model with devise, and I want it to have two
emails (personal and work, for example).
And I want them to work as the normal email from devise, except that the
login will be done with a username attribute. But the emails that devise
will send, I expect to be delivered to both emails.
I also want all the normal email validations on both emails (done by
2012 Feb 04
0
ActiveRecord Associations not working in RSpec with Devise
Hi everyone,
I have the following classes:
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable, :timeoutable,
:recoverable, :rememberable, :trackable, :validatable
has_many :comments, :dependent => destroy
...
end
class Comment < ActiveRecord::Base
belongs_to :user
belongs_to :commentable, :polymorphic => true
...
end
In rails console,
2010 Nov 24
1
NameError in Devise/sessionsController#new
I created a sample application.
Added devise in it, it works fine.
Then added cancan gem into it.
Created an ability class. define some permissions.
Then added line
load_and_authorize_resource
to the Application Controller, after that when i go to the page
http://0.0.0.0:3000/users/sign_in it gave the following error,
NameError in Devise/sessionsController#new
uninitialized constant Session
(Devise+Omniauth) Adding a port number to the callback URL patch applied but not working with openid
2011 Feb 09
0
(Devise+Omniauth) Adding a port number to the callback URL patch applied but not working with openid
I was facing problem reported in issue # 101 (https://github.com/
intridea/omniauth/issues/issue/101) and able to resolve it by
suggested code (mbleigh on January 12, 2011) in environment.rb
However, open ID is still not working. (As mentioned in fix too).
Can someone please help to resolve this or any workaround ?
regards,
Jaymin
--
You received this message because you are subscribed to the
2012 Aug 18
0
Migrating users from devise to bcrpyt-ruby
Hi guys,
How would one migrate users on a rails site using the devise gem for
authentication to using the bcrpyt-ruby gem(has_secure_password rails
option) for the same? I know that both use bcrpyt, but devise has the
stretches and pepper configurations in the devise.rb file and I''m a little
uninformed on how to translate these for the bcrypt-ruby gem.
Is the pepper configuration
2012 Sep 21
0
devise - multi step registration with different models
Hi All,
Kindly help me to sort this out..
I have devise sign up page.
But now I want to integrate multi step registration.
i.e) first, user will enter his/her email pwd and confirmation password.
Will click on Next button where he fills in his personal details and on
clicking Next button will show many subscription types. User will choose
it from the list and then onlyuser should be created.
2012 Aug 15
0
Devise access customer information without password
I am trying to customize my account with devise. However I do not want
to provide a confirmation password on every details. Therefore I have
created a new controller has mentionned on the following tutorial:
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password.
This seem to work, however i have different sections such has follow
2012 Jan 26
0
Show action with Devise
Hi, Devise has edit and new views for registrations, I''d like to add a show
view to display that information.
How can I do that?
If I overwrite the controller RegistrationsController <
Devise::RegistrationsController, it says: "Missing template
registrations/show, ...", but I want to render the view that is inside
users/registrations (the generated view for "rails
2012 Aug 15
0
Devise email confirmation field
I am very new to rails and devise. I have been looking around but couldn''t
find a tutorial that clearly explain how to do so, and why! Basically I
would like to have upon registration 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:
2010 Aug 19
0
Rails - Devise - Warden and InvalidAuthenticityToken
Hi
I''ve just uploaded my new website to my server and, after a couple of
teething problems, seem to be hitting problems when I am using devise
and warden to authenticate users etc.
The following is the error message with sensitive information removed:
Processing RegistrationsController#create (for 81.111.90.194 at
2010-08-19 21:35:43) [POST]
Parameters:
2013 Mar 07
0
custom table_name for table users with devise
Hi
for my app, I have several tables for users (franceusers, belgiumusers,
...) and I would like to use one or another depending on domain
I tried with table_name_prefix and table_name but it seems to not work
class User < ActiveRecord::Base
rolify
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and
2010 Aug 08
0
registerable method undefined in Devise migration (was Re: Re: No route matches)
On 8 August 2010 23:39, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> I tried to make the application from scratch again, and
> notices that I get the following when I run: $ rake db:migrate
>
> (in /Users/abder/Desktop/Rails/auth)
> == DeviseCreateUsers: migrating
> ==============================================
> -- create_table(:users)