RailsUiKit

Helpful components for developing UI in Rails.

Inspired by Cameron Daigle (Hashrocket) series of posts:

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.

Current UI helpers

Contributing

  1. Fork it ( http://github.com//rails_ui_kit/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request