Permalink
Browse files

Fix Issue 59: Allow for Multiple Themes & Update README

  • Loading branch information...
1 parent e6dc022 commit f175e36ac86461ca58b194e484cc67de91593f25 @tmilewski tmilewski committed with amatsuda Mar 24, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.rdoc
View
@@ -156,6 +156,22 @@ Kaminari includes a handy template generator.
or just hit the generator without specifying +THEME+ argument.
% rails g kaminari:views
+* multiple themes
+
+ To utilize multiple themes from within a single application, create a directory within the app/views/kaminari/ and move your custom template files into that directory.
+ rails g kaminari:views default (skip if you have existing kaminari views)
+ cd app/views/kaminari
+ mkdir my_custom_theme
+ cp _*.html.* my_custom_theme/
+
+ Next reference that directory when calling the paginate method:
+
+ % paginate @users, :theme => 'my_custom_theme'
+
+ Customize away!
+
+ Note: if the theme isn't present or none is specified, kaminari will default back to the views included within the gem.
+
== For more information

0 comments on commit f175e36

Please sign in to comment.