Skip to content

Commit

Permalink
Fix Issue 59: Allow for Multiple Themes & Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski authored and amatsuda committed Apr 19, 2011
1 parent e6dc022 commit f175e36
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.rdoc
Expand Up @@ -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

Expand Down

0 comments on commit f175e36

Please sign in to comment.