Project

railstrap

0.0
No commit activity in last 3 years
No release in over 3 years
Bootstrap Tools for Rails 3, Generate Layouts and CRUDs, Helpers and more....
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 1.0.21
>= 0.13.0
~> 3.2.3
>= 2.0.2
 Project Readme

Railstrap

Bootstrap Tools for Rails 3, Generate Layouts and CRUDs, Helpers and more...

Installing Gem

Include Bootstrap in Gemfile;

gem "railstrap"

or you can install from latest build;

gem 'railstrap', :git => 'git://github.com/allanfreitas/railstrap.git'

You can run bundle from command line

bundle install

Genenators Usage:

Layout Generator

rails generate railstrap:layout [LAYOUT_NAME] [options]

Options:

[--no-assets]                # Use this option if you want to generate only the Layout File
[--layout-type=LAYOUT_TYPE]  # Layout type, admin or sign 
                             # Default: admin
[--app-name=APP_NAME]        # Specify the application name # Default: Railstrap Painel
[--no-layout]                # Use this option if you want to generate only stylesheets

CRUD Generator (controller and views):

rails generate railstrap:crud NAME MODEL_NAME [options]

Options:

[--no-controller]             # Sem controller
[--no-views]                  # Sem Views
[--kaminari]                  # Specify if you use Kaminari
[--themed-type=THEMED_TYPE]   # Specify the themed type: crud, list or show. Default is crud

Features

  • Scaffold Gererator on Bootstrap Style
  • Use SimpleForm for CRUD generator on Bootstrap Style
  • Use Kaminari for Pagination on Bootstrap Style
  • Compatible with Rails 3.2

Changelog

  • Released gem v.0.0.1

Future

  • Writing tests (not implemented yet)
  • Markup Helpers for Twitter Bootstrap like: (alert, tabs, pagination, breadcrumbs etc.)
  • Layout for Admin Layout (WORKING ON)
  • Helpers and Generators Compatibles with NAMESPACES on Rails(WORKING ON)

Credits

Allan Freitas - allanfreitasci [at] gmail com

Thanks

Twitter Bootstrap and all Railstrap contributors http://twitter.github.com/bootstrap

Copyright

Copyright © 2012 Allan Freitas. See MIT-LICENSE for more details.