๐ŸŒ
GitHub
github.com โ€บ scambra โ€บ devise_invitable
GitHub - scambra/devise_invitable: An invitation strategy for devise ยท GitHub
There are just two actions in DeviseInvitable that allows any set of parameters to be passed down to the model, therefore requiring sanitization. Their names and the permited parameters by default are: invite (Devise::InvitationsController#create) ...
Starred by 2.7K users
Forked by 547 users
Languages ย  Ruby 95.7% | HTML 4.3%
๐ŸŒ
Medium
medium.com โ€บ @anri.kawahara โ€บ invite-a-user-to-your-app-with-devise-invitable-in-a-react-app-with-rails-backend-e965499e46c6
Invite a user to your app with an invitation email โ€” React app with Rails backend | by Anri Kawahara | Medium
November 14, 2023 - I highly recommend using Devise to implement user authentication. Devise Invitable adds support to Devise gem for sending invitations by email and accept the invitation setting the password.
Discussions

Inviting Users with devise_invitable Discussion | GoRails
What made you laugh at 7:25? Is that a bird?! When do we get meet her/him? :) More on gorails.com
๐ŸŒ gorails.com
Having trouble getting started with the devise invitable gem - rubyonrails-talk - Ruby on Rails Discussions
Using Gem Devise Invitable and using this video for reference: Ruby on Rails #43 Gem Devise Invitable - the correct way to create or invite users to your app - YouTube tried: rails generate devise_invitable:install rails db:migrate rails generate devise_invitable:views routes.rb: ... More on discuss.rubyonrails.org
๐ŸŒ discuss.rubyonrails.org
0
June 2, 2023
Newest 'devise-invitable' Questions - Stack Overflow
Stack Overflow | The Worldโ€™s Largest Online Community for Developers More on stackoverflow.com
๐ŸŒ stackoverflow.com
ruby on rails - Devise Invitable display invited users - Stack Overflow
I'm using the devise_invitable gem along with Devise but I can't figure out how to show a list of all invited users. I want to list all invited users with their status of accepted/pending. I have More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
RubyDoc
rubydoc.info โ€บ gems โ€บ devise_invitable โ€บ 1.7.2
RubyDoc.info: File: README โ€“ Documentation for devise_invitable (1.7.2) โ€“ RubyDoc.info
Replace MODEL by the class name you want to add DeviseInvitable, like User, Admin, etc. This will add the :invitable flag to your model's Devise modules. The generator will also create a migration file (if your ORM supports them).
๐ŸŒ
GoRails
gorails.com โ€บ forum โ€บ inviting-users-with-devise_invitable-gorails
Inviting Users with devise_invitable Discussion | GoRails
Just create a new action on ProjectUsers controller, pass the email associated with that link that was pressed and then execute `User.invite!`? The reason I am asking is that I was trying to pass params to the devise_invitable controller and it seems to be more tricky than you would expect it to be on the surface, so I am trying to explore other ways to do do what i am trying to do.
๐ŸŒ
RubyGems
rubygems.org โ€บ gems โ€บ devise_invitable โ€บ versions โ€บ 2.0.11
devise_invitable | RubyGems.org | your community gem host
May 23, 2025 - It adds support for send invitations by email (it requires to be authenticated) and accept the invitation by setting a password.
Find elsewhere
๐ŸŒ
Ruby on Rails
discuss.rubyonrails.org โ€บ rubyonrails-talk
Having trouble getting started with the devise invitable gem - rubyonrails-talk - Ruby on Rails Discussions
June 2, 2023 - Getting a No route matches [GET] โ€œ/users/invitation/newโ€ error even though it the /invitation/new new_user_invitation_path is stated under the list of routes. Using Gem Devise Invitable and using this video for reference: Ruby on Rails #43 Gem Devise Invitable - the correct way to create or invite users to your app - YouTube tried: rails generate devise_invitable:install rails db:migrate rails generate devise_invitable:views routes.rb: Rails.application.routes.draw do # ... devise_for...
๐ŸŒ
GitHub
github.com โ€บ scambra โ€บ devise_invitable โ€บ wiki
Home ยท scambra/devise_invitable Wiki ยท GitHub
Custom invite emails for different use cases Seeding invitable model without sending invitation emails Disable devise recoverable if invitation was not accepted I18n Working with strong parameters gem Integration with ActionMailer adapters โ€“ e.g.
Author ย  scambra
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ tagged โ€บ devise-invitable
Newest 'devise-invitable' Questions - Stack Overflow
So, i'm currently working on an app where I need to allow the admin and teachers of a school to send invitations to new users. So far so good, I used Devise_invitable and the sending of the invitation ...
๐ŸŒ
RubyDoc
rubydoc.info โ€บ gems โ€บ devise_invitable โ€บ 1.4.1 โ€บ Devise โ€บ Models โ€บ Invitable
RubyDoc.info: Module: Devise::Models::Invitable โ€“ Documentation for devise_invitable (1.4.1) โ€“ RubyDoc.info
Invitable is responsible for sending invitation emails. When an invitation is sent to an email address, an account is created for it. Invitation email contains a link allowing the user to accept the invitation by setting a password (as reset ...
๐ŸŒ
Superails
superails.com โ€บ posts โ€บ ruby-on-rails-43-gem-devise-invitable-the-correct-way-to-create-or-invite-users-to-your-app
#43 Gem Devise Invitable - the correct way to create or invite users
October 24, 2024 - Gem source: https://github.com/scambra/devise_invitable Episode code: https://github.com/corsego/40-devise-everything/commit/6a408b0ee0991749d32321a130b28184efbbff21 ยท Intro. Creating users manually Installing the gem Inviting users Button to resend invitation ยท
๐ŸŒ
Reddit
reddit.com โ€บ r/rails โ€บ how to invite users into multiple companies using devise_invitable?
r/rails on Reddit: How to invite users into multiple companies using devise_invitable?
September 26, 2023 -

I cannot find any good tutorials on how to use devise_invitable and multiple companies.

I have used this gem successfully for 6 years, where a User belongs_to 1 company.

Now we need to allow users to be able to switch between companies, and get invited to multiple ones.

The switching between companies is now possible, using a new model:

class UserCompany < ApplicationRecord
  belongs_to :user
  belongs_to :company
end

Users can now switch between companies, and we use the User.company_id to remember which company is the 'current selected' one.

How do we upgrade the Invitation part to support multiple companies?

  • A user could get 2 invites at the same time from 2 different companies.

We have created the app/controllers/invitations_controller.rb and added the route for that.

I am just stuck at what happens next, I guess I need some magic in the create method and should we use super there?

The invitation_* variables have been moved from the User to UserCompany model, along with is_admin which is used to mark which users have admin rights in that company.

#<UserCompany:0x000055951d8358d0
 id: 5,
 user_id: 1,
 company_id: 1,
 is_admin: true,
 disabled: false,
 created_at: Mon, 25 Sep 2023 15:53:31.461755000 UTC +00:00,
 updated_at: Mon, 25 Sep 2023 16:05:35.771460000 UTC +00:00,
 invitation_token: nil,
 invitation_created_at: nil,
 invitation_sent_at: nil,
 invitation_accepted_at: nil,
 invitation_limit: nil,
 invited_by_type: nil,
 invited_by_id: nil,
 invitations_count: 0>

This is the original controller for devise_invitable: https://github.com/scambra/devise_invitable/blob/master/app/controllers/devise/invitations_controller.rb

This is where we are at now, could be totally wrong

class InvitationsController < Devise::InvitationsController
def create
  invited_user = User.invite!(
    email: params[:user][:email], 
    company_id: current_user.company_id
  )

  UserCompany.create(
    user_id: invited_user.id,
    company_id: current_user.company_id
  )

  super
end
๐ŸŒ
GitHub
github.com โ€บ platanus โ€บ admin-invitable
GitHub - platanus/admin-invitable: Gem to use devise invitable with ActiveAdmin. ยท GitHub
To clarify, the common use will be super administrators inviting administrators with less privileges. Add to your Gemfile and install the following gems... ... your_app/app/views/devise/invitations/edit.html.erb.
Author ย  platanus
๐ŸŒ
YouTube
youtube.com โ€บ watch
Inviting Users with devise_invitable | Preview - YouTube
Check out https://gorails.com for Pro episodes and more!
Published ย  May 23, 2016