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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:42:54+00:00 2026-06-10T14:42:54+00:00

I am trying click on a link to call this action. <% link_to popup,

  • 0

I am trying click on a link to call this action.

<% link_to "popup", :action => 'user_logs_out', :controller => 'application'%>

In my application controller I have this action:

def user_logs_out
    gon.display_sign_out_popup = true
end

How can I call this action? It always shows template error. Since the action simply needs to set a boolean value, I don’t feel a need to have view file for it.

  • 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-10T14:42:56+00:00Added an answer on June 10, 2026 at 2:42 pm

    If you really want an action to render nothing, you can use render :nothing => true.

    def user_logs_out
      display_sign_out_popup = true
      render :nothing => true
    end
    

    However, there is almost certainly no reason why you would want to do this.

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

Sidebar

Related Questions

I am trying to perform an action on link click.In this case I want
I am trying to do the following: On link click: 1.) fade out an
Two things I'm trying to achieve and need help with 1) Click a link
what i am trying to do is when i click on the link, it
I'm trying to load different Google Maps depending on what link they click. Something
I am trying to click a table row and perform an action. However if
So let's say I'm trying to click a link in the QWebView, here is
I'm trying to link my website with Facebook. If I call the method in
I am trying to learn object oriented javascript. Why is this call to an
I'm trying to download a pdf when i click a link. These are my

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.