Skip to content

Instantly share code, notes, and snippets.

@swistaczek
Created April 20, 2012 17:26
Show Gist options
  • Save swistaczek/2430460 to your computer and use it in GitHub Desktop.
Save swistaczek/2430460 to your computer and use it in GitHub Desktop.
Warsztaty Atena RubyOnRails

Wprowadzenie do Ruby on Rails

Ernest Bursa dla SKN Atena.

stworzenie nowego projektu

rails new euro2012
cd euro2012/

pobranie szkieletu

git clone git://github.com/swistaczek/euro2012.git

plik .gemfile

gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'

terminal

bundle install

Installing to App (using Generators) You can run following generators to get started with Twitter Bootstrap quickly.

Install (requires directives to Asset pipeline.)

Usage:

rails g bootstrap:install Layout (generates Twitter Bootstrap compatible layout) - (Haml and Slim supported)

Usage:

rails g bootstrap:layout [LAYOUT_NAME] [*fixed or fluid] Example:

rails g bootstrap:layout application fixed Themed (generates Twitter Bootstrap compatible scaffold views.) - (Haml and Slim supported)

Usage:

rails g bootstrap:themed [RESOURCE_NAME] Example:

rails g scaffold post title:string description:text rake db:migrate rails g bootstrap:themed Posts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment