Itium::Theme

View generator for rails projects using simple_form and bootstrap

Installation

Add this line to your application's Gemfile:

gem 'itium-theme'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itium-theme

Usage

Themed Generator

Start creating your controllers manually or with a scaffold, and then use the themed generator to overwrite the previously generated views.

If you have a controller named like the plural of the used model you can specify just the first parameter:

rails g itium_theme:themed posts # you have a model named Post and a controller named PostsController

rails g itium_theme:themed admin/gallery_pictures # you have a model named GalleryPicture and a controller named Admin::GalleryPicturesController

If the controller has a name different to the model used, specify the controller path in the first parameter and the model name in the second one:

rails g itium_theme:themed items post

rails g itium_theme:themed admin/items post

If you use will_paginate for pagination use the --will-paginate:

rails g itium_theme:themed items post --will-paginate

If you want to have translated pages, simple create in your locale.yml the keys just like config/locales/en_us.yml example.

en_us:
  itium-theme: 
    save: Save
    cancel: Cancel
    list: List
    edit: Edit
    new: New
    show: Show
    delete: Delete
    confirm: Are you sure?

Contributing

  1. Fork it
  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