I am trying to set the instance variable from the controller from the view. For example:
class UsersController
def new
@admincheck = false
end
in view: home.html.erb
<%= link_to "Sign up", signup_path, @admincheck => true, :class => "signup_button round" %>
with setting @admincheck to true in the view, will the UsersController respond to that by receiving @admincheck that is true?
I am unsure whether you can assign instance variables values in the view for the controller to use. Thanks