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 8106467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:28:33+00:00 2026-06-06T00:28:33+00:00

I want to create a route such as get ‘/referrals/send_invite/:email_address’ I will be calling

  • 0

I want to create a route such as

get '/referrals/send_invite/:email_address'

I will be calling this route via remote: true and GET. However if I issue the GET request in my browser, the route will still try to find a View, thus leading me to:

Template is missing

Is there a way that I could tell rails that the send_invite method in Referrals Controller doesn’t have a view associated?

I would hope that this could be accomplished by just using rails routes.

Thanks.

  • 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-06T00:28:36+00:00Added an answer on June 6, 2026 at 12:28 am

    Not completely sure, but I am guessing you want to start the action send_invite so you are not interested in an actual result, correct?

    You could do something like

    def send_invite
      SomeMailer.mail(:email => params[:email_address])
      # or queue it or whatever
      head :ok
    end
    

    Note that that is not the only option, you could also do something like

    render :text => "The mail has been sent to #{params[:email_address]}"
    

    or

    render :json => {:result => 'ok', :email_adress => params[:email_address]}
    

    Also note this should be a POST, since this action is not idempotent (a GET should not have side-effects).

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use URL such as /Image/sample.png I create route, but it does
I want to create wayfinder/pathfinder mobile application. it will route visitors in our buildings.
I want to create a route like //Widgets/PerformanceTable/['best' or 'worst' to sort by performance
I make a carpooling application. When I want to create a new Route, I
i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
Is it possible to detect a route value in a view? Such as /pages/create/1
I am looking to create a route which does image resizing, and I want
I want to create a route, that matches on an array. example: Name_show: pattern:
I want to create a route server to proxy some clients(they may not in
There's a addPost function in my router. I don't want to re-create the postAddView

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.