Displaying 20 results from an estimated 70000 matches similar to: "Devise with two emails"
2011 Nov 21
0
How to use two different sets of mailer templates for two different Devise models?
I''m using Resque to send Devise emails. To do so I set:
devise.rb
config.mailer = "Mailers::Devise::DeviseMailer"
But I have 2 devise models -- User and Client. I want to send
different devise mailer templates for each.
devise.rb says "The first four configuration values can also be set
straight in your models.", and config.mailer is one of those first
four, but
2013 Sep 26
0
Devise Invitable and Validations -- what's the right way to do this?
Rails 3.2.14, Ruby 1.9.3, devise_invitable 1.1.8
I am trying to get invitations containing custom fields to validate their contents properly. I have tried the invite_keys hash route, as documented here: https://github.com/scambra/devise_invitable#model-configuration and unless I am doing something wrong with my Regexps, what happens is the fields are validated, but the error messages are
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
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
2013 Jul 09
3
routes for devise in rails4
hi all,
i am using 3 devises for 3 models in rails4.
i need routes to my devise models.the devises are client,admin,employee.
when i login into client then it will go to clients dashboard, when i
login into admin then it will go to admins dashboard, the employee also
has the employee dashboard.
if i do not enter any login then the common dashboard body message is
please signin.
please let me
2013 Jul 03
1
Devise auth based on ssl keys
Hi, guys.
I already have a rails 3.1.2 and ruby 1.9.3 vast app with an auth based
on devise. Now I want to add to the my app a ssl key based auth. As
web-server it uses thin and nginx as proxy. I have made only ssl on the
nginx at 443 and only for some app pathes (e.g. /articles, /search etc).
How I can tell to the my app and devise use the ssl keys and assign them
to the app users (link
2013 Oct 02
2
When overriding the registration controller from devise, is it possible to access the newly created
I''m trying to create a folder right after a user registers, so I override
the create action on the registration controller (devise) but I don''t know
how to access the newly created user in order to create the folder with
it''s name to upload files later.
So far I''ve got this:
class RegistrationsController < Devise::RegistrationsController
def new
2013 Jul 09
2
can i use single devise for multiple models.
Hi,
i need to use authentication for the 4 models,is it possible to use
single devise for all models,if yes plz let me know them clearly.
if not what is the solution.
Thankyou
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails
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
2013 Oct 07
0
rails_admin problem in raoutes, parallel login area in devise
hello friends,
i am using rails_admin as webapp admin interface. it create a User model by
default using Devise gem. after that i am creating another authorization
area member. now /admin route change to /member/sign_in from user/sign_in.
any body have idea how to create a parallel login area in devise with
rails_admin.
/admin => /user/sign_in (default)
after
* rails g devise member*.
it
2014 Jun 04
0
Rails with Angular and Devise
I had a non-Angular Rails app with Devise powering the authentication.
Almost all of it.
However as we are moving it to AngularJS, had a question or two about how
to integrate that with Angular.
1. What all parts of Devise can still be used?
2. What are best practices around how to maintain session in angular?
3. Also, how do I manage multiple roles(*based on 2 different models*,
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:
2011 Aug 25
1
Devise + Forem: undefined method weeks on Fixnum
I''m getting the following message when trying to start Webrick or
console.
... devise-1.0.11/lib/devise.rb:89:in ''<module:Devise>'': undefined
method ''weeks'' for 2:Fixnum (NoMethodError)
After trying to upgrade my app to Rails 3.1 (edge) so that I may use the
Forem engine.
I''m under the impression this error is occurring because
2013 Jul 04
3
Rspec devise, testing extended RegistrationController action destroy
Hi everyone,
I have devise 1.5.4 working with rails 3.0.20 and ruby 1.8.7 .
I have extended the destroy action from the RegistrationController, to soft
delete users instead of really deleting them from the database.
def destroy
# raise resouce.inspect # this is just to see if the test hits the
action
resource.soft_delete
set_flash_message :notice, :destroyed
sign_out resource
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
2012 Feb 24
3
Devise generates Mailer by its own?
Rails 3.1.3
Hi. I''m a little confused with Devise and ActionMailer.
It seems that Devise has its own way of sending mails through
ActionMailer.
Does it generate Mailer class when "rails g devise..." command is
executed?
Or do I need to do some special command in order to generate Mailer?
I have certainly set up a devise User table but there is no Mailer class
for it,
2011 Dec 20
4
Custom Devise Controller
Hi Guys,
I was wondering if sb could help me.
I have the following problem:
-I want to create a complex form using railscast tutorial (
http://railscasts.com/episodes/73-complex-forms-part-1). Well, to perform
this I need to update my controller(in this case the controller responsible
to manipulate user).
But I''m using Devise gem and I don''t know how I could manipulate the
2012 Dec 12
1
Devise route for confirmation error with :locale
Rails 3.1.3
I have setup devise and i18n . In routes.rb
scope "/:locale" do
devise_for :users, :controllers => { :registrations =>
''registrations'' }
...
end
But in the process of confirmation,
No route matches {:action=>"create",
:controller=>"devise/confirmations",
2012 Sep 25
1
Devise Gem
Hi all
i am learning how to implement devise gem but i just want to know do
i need to write the login code first and then runt this command " rails
generate devise:install " or run the command first and then go for login
code. can any one tell me what to do.
Cheers
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Jul 30
2
Get the current user as Json with Devise
Hi!
I use Devise and Basic HTTP Authentication to access user areas from a
mobile app. When the user enters its details in the app and it tries to
"login" (you don''t actually login with basic auth as you send the
credentials with each request) I want to get a response back with the user
info, like user ID, email (not password) etc.
- So, is there a way to do this out of