similar to: Show action with Devise

Displaying 20 results from an estimated 30000 matches similar to: "Show action with Devise"

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 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
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:
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",
2011 Jul 14
10
Devise confusing routes
I had a similar problem yesterday. I would go to the root of my site and I would get a Too Many Redirects message. It seems like there was an infinite loop. After struggling for over an hour yesterday late at night, it seemed like I fixed it. But now, when I want to create a New User, it''s redirecting me to the Sign In screen. Seems like I didn''t fix the problem completely. I
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
2011 Aug 09
2
Devise AssociationTypeMismatch
My site is using Devise and Cancan. Currently I have 3 roles setup I am testing creating a new user using the following command (role is required): curl -H "Content-Type:application/json" -H "Accept:application/json" - d "{\"user\":{\"email\":\"test01-J0of1frlU80@public.gmane.org\", \"role\":\"2\", \"name\":
2013 Jun 25
6
creating an account with a username in devise
Hello, all. I have followed these links and have enabled a (current) user to login with a username: http://railscasts.com/episodes/209-introducing-devise http://railscasts.com/episodes/210-customizing-devise https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address I want to allow a user to sign up with a username but am getting these
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
2011 Jun 13
0
Devise Authorization Error
Hello everyone, I am new to rails and I am having some trouble getting the Devise authorization plugin working. I can get the login page to display, but when I enter the credentials for a known user (I seeded an account to the database) it just says "Invalid email or password," even though I''m 100% sure I entered the right information, and redirects me to the login form.
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3. My spec_helper.rb ENV["RAILS_ENV"] ||= ''test'' require File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment'')) require ''spec/autorun'' require ''spec/rails'' require
2010 Dec 17
1
flash[;notice] not display after redirection
I read all previous posts about the same subject in Devise group but couldn''t find any answer, so iy may not be related to Devise , so I debugged it .. . class Users::RegistrationsController < Devise::RegistrationsController .. # POST /resource/sign_up def create build_resource if resource.save if resource.active? set_flash_message :notice, :signed_up
2012 May 17
0
Two layouts in one mailer
Hi all, I''m having problems figuring out how to know which mailer method is being invoked in the layout callback. In my controller, I have code like this and its working great: class Users::RegistrationsController < Devise::RegistrationsController layout :devise_or_application def devise_or_application ["edit", "update",
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
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
2013 Mar 20
2
Rspec + Devise + BaseController
Hello there, I''m creating a base controller for the admin section of a project. All controllers whitin the admin section will inherit from it. ##################################################### #app/controllers/admins/base_controller.rb class Admins::BaseController < ApplicationController layout "admin_cms" before_filter :authenticate_admin! end
2014 Apr 21
0
Unpermitted Parameters - Rails 4
Hi, I'm using Devise (3.2.4), Rails 4 and I'm trying to signup. I have a Registration Controller where i do have: " def sign_up_params params.require(:user).permit(:email,:first_name, :last_name,:mobile, :birthday, :current_password, :password,:password_confirmation) end " and everytime i try to sign up I get the following message: Processing by
2010 Nov 03
3
|Newbie] Change default locale I18n file devise.
Hello! This is probably something easy. I''ve looked at some documentation but I didn''t find any good resources on how to change to default locale file with Devise authentication plugin. Should I do it in my application controller or should I change something in Devise? And how should I do it. Thanks // Anders -- You received this message because you are subscribed to the
2011 Jul 11
39
Help filling out a registration (I think it's called multi tenant)
Do you know when you are filling out a registration for a new account, and you keep pressing next to fill the rest of the information in separate pages? I''d like to do that, but I have no idea how. Basically I have a company model with its information, and a contacts model, with belongs to my company (also each company has only one contact), and I''d like for the user to fill in
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