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.
If you really want an action to render nothing, you can use
render :nothing => true.However, there is almost certainly no reason why you would want to do this.