similar to: devise - multi step registration with different models

Displaying 20 results from an estimated 30000 matches similar to: "devise - multi step registration with different models"

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 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
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 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 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:
2003 Mar 14
1
Two graphs of different sizes on one devise. How to?
I am trying to plot two graphics with different sizes to one devise. par(mfrow=c(1,2)) # is set the size for the first graphic par(fig=c(0,7,0,10)/10) #and plot it plot(1,1) #then i set the size par(fig=c(7,10,0,10)/10) #and plot the second one plot(2,2) Unfortunately when i plot figure two figure 1 disapear. How to avoid these? /Eryk.
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
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
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
2012 Sep 05
0
Generate devise session controller
Hi Folks Good morning, Am new to rails. I used devise in my project ,i need to write some conditions in my session controller.How can i generate devise session controller. I have user.rb model. Steps which i made: 1. Generate rails g controller session 2. Session controller generated 3. Changes the text like, class Users::SessionsController < Devise::SessionsController end 4.In routes i
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
2012 Nov 22
0
Devise Need to show Confirmation error
Hello Folks I had devise with email confirmation feature in my app. Confirm mail going well. If the user try to login before confirm there account, need to show error message like *your account not yet activated*. How can i accomplish this? -- 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
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 Feb 14
0
Devise is causing the [The change you wanted was rejected.] Error...
I am using the custom made Devise controller. I moved from PHP to Rails that, old users password are stored in Devise:user table in form of "devise_encryption(oldencryption(password))" If an user login, and app finds out that this user''s password is in form of "devise_encryption(oldencryption(password))", I then change it in to a form of
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
Here I am, trying to learn TDD and BDD. Getting start, most simple case, and the world is falling apart: My test code: it "should respond with success" do puts ''hi'' # get :new # response.should be_success end My stack trace: $ rspec spec "controller: nil" F Failures: 1) VideosController new exposes request and response before and
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 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
2011 Nov 02
1
getting devise to return json data when signing out
Hi all, In curl (the command line program), I can successfully log a user in using devise: def create respond_to do |format| format.json { if user_signed_in? return render :json => {:success => true, :errors => ["Already logged in."]} end resource = warden.authenticate!(:scope => resource_name, :recall =>
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