similar to: Strange issue in Devise with rails 3.0.5

Displaying 20 results from an estimated 40000 matches similar to: "Strange issue in Devise with rails 3.0.5"

2011 Apr 06
2
Can i upgrade a project from rails 1.2.3 to rails 3.0.5 ?
hello, i have an application which is created in rails 1.2.3 and ruby 1.8.6 and now i have to upgrade it to rails 3.0.5 and ruby 1.8.7 ? is it possible? and if yes how ?? can you guys provide me with some kind of link or reference . Thanks Nishant -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2012 Mar 06
0
Devise/Cancan Signout User On Controller Action
I have implemented Devise for Authentication and Authorization in ROR application everything seems fine but getting one issue. I have two modals "Account" and "Transactiona" , and so two controllers respectively. My Transaction Index view call one of Account Controller method like this
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*,
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 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
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
2012 Feb 12
1
Rails devise with recaptcha
I''m trying to use the recaptcha gem with devise 2.0.0 in rails 3.2.1. Every time I try, I am able to display the captcha and input the 2 words it asks about. But in my controller (using code I found on github for the recaptcha gem, and after I replaced render_with_context with just plain render) verify_recaptcha always returns false and when I look at flash[:recaptcha_error] it says
2010 Oct 31
4
Newbie - Rails 3 authentication question (Devise)
Hello! I''m working on my first Rails app and I have a question regarding authentication. I already have authentication for signing up, logging in, logging out, etc. What I need is an account email activation function and a reset password (forgot password) function. I have read a little bit about Devise and watched the Railscast episodes on it, it seems nice, but is it possible to add
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 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
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
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 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
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
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
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 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,
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
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 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",