RailsUiKit
Helpful components for developing UI in Rails.
Inspired by Cameron Daigle (Hashrocket) series of posts:
- http://hashrocket.com/blog/posts/managing-design-handoffs-with-the-ui-controller
- http://hashrocket.com/blog/posts/the-ui-controller-part-2-faking-it
- http://hashrocket.com/blog/posts/the-ui-controller-part-3-the-ui-helper
Installation and configuration
All you need to do is add the next line to your application's Gemfile:
gem 'rails_ui_kit'
And then execute:
$ bundle
Create your own layout in app/views/layouts (e.g. ui.html.erb) and define ui_layout method in your super controller (ApplicationController):
class ApplicationController < ActionController::Base
protected
def ui_layout
'ui'
end
end
Usage
Create UI templates in app/views/ui/ folder, partials will be ignored.
Browse /ui/ path within app url in the browser to view list of UI templates.
Contributing
- Fork it ( http://github.com/
/rails_ui_kit/fork ) - 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