Sha256: 5505e6efd36695a876b4fd3b03240ebf7b1b76c4e6bb241c4ba6cae0ec70ce23

Contents?: true

Size: 553 Bytes

Versions: 18

Compression:

Stored size: 553 Bytes

Contents

<p>
  This view gets displayed when the user tries to access something forbidden.
</p>

<% if current_user %>
<p>
  You should inform the user that they are logged in as 
  <%= current_user.email %> and suggest them to
  <%= link_to 'Log out', session_path, :method => :destroy %> and log in as a
  different user.  
</p>
<% else %>
<p>
  The user will only see this if JavaScript is disabled. Ask them to
  <%= link_to 'Log in', new_session_path %>.
</p>
<script type="text/javascript">
window.location = "<%= new_session_path %>";
</script>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
authpwn_rails-0.9.6 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.9.5 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.9.4 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.9.3 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.9.2 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.9.1 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.9.0 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.8.3 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.8.2 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.8.1 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.8.0 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.7.5 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.7.4 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.7.3 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.7.2 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.7.1 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.7.0 lib/authpwn_rails/generators/templates/session/forbidden.html.erb
authpwn_rails-0.6.0 lib/authpwn_rails/generators/templates/session/forbidden.html.erb