VersionedViews
Installation
Add this line to your application's Gemfile:
gem 'versioned_views', :git => 'git@github.com:keikun17/versioned_views.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install versioned_views
Usage
Drop this line to the controller
include VersionedViews
Versioned layout templates go to app/views/layouts/<version>
Versioned views go to app/views/<version>
Render versioned layouts by calling this in the controller action
render_versioned({:layout => "application", :version => "v2"})
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request