Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8654409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:46:51+00:00 2026-06-12T14:46:51+00:00

I got the devise invitable installed and working. Trying to figure out how to

  • 0

I got the devise invitable installed and working. Trying to figure out how to redirect the user after he/she sent an invitation out. Right now it’s redirecting me to the root. I thought you can just set your custom path in the method below but it didn’t work. Thanks in advance if anyone know where to customize the path after invite sent.

 def after_invite_path_for(resource)
    new_profile_path
  end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:46:52+00:00Added an answer on June 12, 2026 at 2:46 pm

    I stumbled upon your question because I was having the same issue. As far as I can tell the intended way for you to override after_invite_path_for is to override Devise::InvitationsController.

    class Users::InvitationsController < Devise::InvitationsController
      def after_invite_path_for(resource)
        new_profile_path
      end
    end
    

    routes.rb

    devise_for :users, :controllers => { :invitations => "users/invitations" }
    

    It would be nice if devise invitable worked like devise proper and you could override its after invite/accept paths in application controller. I modified devise_invitable to work that way and submitted a pull request. I’m not sure if it will be accepted or not, but you can have a look here: https://github.com/scambra/devise_invitable/pull/240.

    If that feature is accepted, you could patch your current version of invitable to respect definitions of after invite/accept paths in application controller by putting this in an initializer:

    #make invitable's path functions overridable in application controller
    [:after_invite_path_for, :after_accept_path_for].each do |method|
      Devise::InvitationsController.send(:remove_method, method) if ApplicationController.method_defined? method
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got Devise working in my Rails app but I can't figure out how
I've got the client_side_validations gem working really great on my forms. I'm using Devise
I'm currently trying to implement Devise with LDAP Authentication on RAILS3. I've got it
I installed devise successfully: @ubuntu:~/boltzman$ rails generate devise User invoke active_record create db/migrate/20111109080820_devise_create_users.rb create
I've got a rails 3 app in beta right now that uses Devise for
OK, just got: class User include Mongoid::Document # devise stuff... has_one :card end class
I've got devise working, but I see CanCan frequently mentioned in tutorials alongside Devise;
I've got the following I've pasted into my user model: module ClassMethods Devise::Models.config(self, :email_regexp,
my Devise Recaptcha isn't working correctly because I can skip right over it and
rails generate devise User I got this=> class DeviseCreateUsers < ActiveRecord::Migration def self.up create_table(:users)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.