Redirect_to session_path controller and view RAILS DEVISE

flipboyz

New Member
Why does this not work? I've tried multiple choices like render and puts, but it doesn't want to change properly. A couple of ideas users?THE VIEW: \[code\]<div id = "container"> <div id = "smaller-container"> <%= user_signed_in? %> <%= @Uchecker %> <% else %> <%= link_to "Sign Up", new_user_registration_path, :id => "SignUpText" %> </div>\[/code\]THE CONTROLLER: \[code\]class PostsController < ApplicationController def Uchecker @Uchecker = redirect_to user_session_path endend\[/code\]
 
Back
Top