In my application confirmation mail is sent after the entry goes in User's table or new user signs up. But in my application I am also using devise invitable. In that when I do User.invite then the invitation is sent but since the entry also goes in users table the confirmation mail is also sent. But can I stop the confirmation mails being sent while sending the invitation to users. I had added skip_confirmation: truewhile adding the invitation but still the confirmation mails are sent. Can someone suggest some solution for this?
Stop registration mail while sending invitation mail in ruby
164 Views Asked by Neha At
1
There are 1 best solutions below
Related Questions in RUBY-ON-RAILS-3.2
- Searchkick::InvalidQueryError in rails 3 + Searchkick
- (Ruby on Rails validates_confirmation_of) How to switch error message to the confirmation field?
- Update record in before_destroy and prevent its destruction
- Ruby on Rails: pass query parameters hash with key but nil value
- Access value from multidimensional Hash rails
- Mysql2 error in starting rails server in mac m1
- bundle update --conservative devise does not update only "devise" gem
- minitest/capybara error - NameError: undefined local variable or method 'page'
- Pundit gem error class overriding my custom error class in ruby
- Rails 4 AR .select includes pk field in result even if result is grouped (as opposed to Rails 3.2)
- uninitialize constant user (work with dto)
- Problem deleting server side cookies in Controller
- heroku push of Rails 3.2 app suddenly fails with "Could not detect rake tasks" (no other errors)
- RAILS 3.2.2.1 > rails assets:precompile LoadError: cannot load such file -- net/ssh/config
- Rails find_by new column
Related Questions in DEVISE
- Devise:Invitable redirecting me to sign_in
- uninitialized constant GraphqlDevise::SchemaPlugin from graphql_devise
- invitation_accepted? returns FALSE in after_invitation_accepted CALLBACK
- Error 401 Unauthozied when connecting to hybrid rails 7 using Devise-JWT
- How to Properly Implement API Authentication with Devise in Rails?
- Handling Devise Cookies as Secure over HTTP When Proxying Through Upstream SSL via AWS Gateway
- Issue with current_user in turbo_stream and broadcast
- Devise with only Omniauth: how only to use login page of the provider
- Weird Caching / Devise Issue - Have to restart server for user signup to work
- Migrate encrypted password using devise to another environment using devise but with different devise pepper while maintaining passwords
- Best strategy for Devise + Omniauth signin/up via API which doesn't provide email?
- Rails Validations with oauth2 and devise
- Ruby on Rails in last version isn't working with Wicked GEM
- Devise-related system tests fail when run en mass but they pass when run individually (Devise::Mailer)
- Insert parameters in a Devise controller
Related Questions in DEVISE-INVITABLE
- Devise:Invitable redirecting me to sign_in
- invitation_accepted? returns FALSE in after_invitation_accepted CALLBACK
- issue Sending multiple Invitaions using Devise Invitable
- Devise invitable: Resend custom invitation with token
- Rails Devise Invitable gem resend invitation
- How do i add custom fields to Devise-invitable
- DeviseInvitable Polymorphic invited_by association always fallbacks to User
- Routing error when using devise invitable gem
- How to use Devise Invitable with Rails 7 and Turbo Stream
- Devise Invitable getting wrong params
- What is the meaning of the error for Facebook SSO callback in rails
- How to add custom fields in devise invitables in rails the custom fields is your name and phone number
- NoMethodError (undefined method `deliver_invitation') devise invitable rails
- Devise invitable change accept_invitation_url
- Devise Invitable: Return a list of invitation tokens
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I did this (and a few other modifications) by altering the devise_invitable controller action for
create. The README has a section called "Configuring Controllers" to get you started down this road.You want to follow the instructions in that section to create a new controller that inherits from Devise::InvitationsController. In the newly-created controller include a
createmethod that uses theskip_confirmation!method and thensuper(refer) to the parent controller to finish the action.This is untested code, but you'd have something like:
When I was figuring out how to modify the default Devise_Invitable behavior, I found looking at the source controller really helpful - here it is.