Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

After using on first app decided to add note to help users isolate la…

…youts.
  • Loading branch information...
commit f3dc16c0e324f59fe1da453cb34d4db6dcf04c00 1 parent 557ffa4
Eric Anderson authored

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. +14 0 README.rdoc
14 README.rdoc
Source Rendered
@@ -80,6 +80,20 @@ nice features:
80 80 * If you don't like a pre-packaged error message you can easily override
81 81 in your own locale files.
82 82
  83 += Isolating your Layout
  84 +
  85 +This gem is implemented as a isolated engine. This means that even
  86 +though it uses your layout it doesn't know anything about your
  87 +application's routes. This means in order for your layout to work you
  88 +may need to add a few conditionals to your layout. For example if you
  89 +have a logout action in your layout you may need to change:
  90 +
  91 + <%= link_to 'Log-out', logout_path %>
  92 +
  93 +to
  94 +
  95 + <%= link_to 'Log-out', logout_path if respond_to? :logout_path %>
  96 +
83 97 = A Bit of Background
84 98
85 99 In old versions of Rails there was a mismatch of things to help you

0 comments on commit f3dc16c

Please sign in to comment.
Something went wrong with that request. Please try again.