Permalink
Browse files

Merge pull request #1 from niklas/patch-1

hint to gotcha involving non-standard load paths.
  • Loading branch information...
2 parents e338f99 + 5f6b5a4 commit 34e05406b3cc37102ed244fadeb5226bc2e2fc3d Sven Fuchs committed Jun 16, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.textile
View
@@ -54,3 +54,10 @@ ActiveSupport::Slices provides a simplistic solution to all of these requirement
Also see "this discussion":https://gist.github.com/b7733d5fea89d2dd37ca
+h2. Gotchas
+
+If your slices won't get loaded, make sure they are locatable within your loadpath. If e.g. you want to slice "minimal":https://github.com/svenfuchs/minimal template, you must edit your @config/application.rb@ as follows:
+
+<pre>
+config.autoload_paths += %W(#{config.root}/app/views)
+</pre>

0 comments on commit 34e0540

Please sign in to comment.