Wie kann man einem Sitzungsattribut einen booleschen Wert zuweisen und es von einem anderen Ort lesen/überprüfen?Zuweisen eines booleschen Werts zum Sitzungsattribut in jRuby/ruby on rails
ist das der richtige weg ??
zuordnen:
<% session[:contacts_available]=true %>
Überprüfen Sie den Wert:
<% if session[:contacts_available]? %>
<p> Donec interdum turpis eget leo lobortis, sit amet lacinia ante vulputate. Maecenas hendrerit
euismod nulla in semper. Donec arcu nibh, faucibus at posuere id, dapibus non tellus. </p>
<% else %>
<p> You're logged in as : <%= current_user.email %> <%= link_to "Log Out", logout_path %> </p>
<p> Welcome to our service. You currently don't have any contact details under your username.
Please fill the below form to show the first contact detail of yours. </p>
<% end %>