I want to pass a variable value from controller to view as shown below
controller (.rb)
redirect_to root_url, :some_var => 'true or false'
view (root_url.html.erb)
<% if :some_var %>
#do something
<% else %>
#do something else.
can anyone provide me an idea. Thanks in advance.