Skip to content

Instantly share code, notes, and snippets.

@naokits
Created November 6, 2014 08:38
Show Gist options
  • Save naokits/a010144c37b89a9a0b45 to your computer and use it in GitHub Desktop.
Save naokits/a010144c37b89a9a0b45 to your computer and use it in GitHub Desktop.
Railsアプリテンプレートの実行結果
application_templates% ./redrose_bootstrap.sh
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
apply /Users/naokits/Desktop/application_templates/redrose_app_template.rb
アプリケーション名:redrose_app
remove README.rdoc
削除しました
remove public/index.html
run gibo OSX Ruby Rails JetBrains SASS SublimeText > .gitignore from "."
gsub .gitignore
gsub .gitignore
run cp ../Gemfile . from "."
run bundle install from "."
Updating git://github.com/paulwittmann/rails-erd.git
Fetching source index from https://rubygems.org/
Resolving dependencies......
Using rake 10.3.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.4.2
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.7
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.7
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.7
Using mime-types 2.4.3
Using mail 2.6.3
Using actionmailer 4.1.7
Using activemodel 4.1.7
Using arel 5.0.1.20140414130214
Using activerecord 4.1.7
Using annotate 2.6.5
Using awesome_print 1.2.0
Using bcrypt 3.1.9
Using bootstrap_form 2.2.0
Using bundler 1.7.4
Using columnize 0.8.9
Using debugger-linecache 1.2.0
Using slop 3.6.0
Using byebug 3.5.1
Using cancan 1.6.10
Using hitimes 1.2.2
Using timers 4.0.1
Using celluloid 0.16.0
Using choice 0.1.6
Using coderay 1.1.0
Using coffee-script-source 1.8.0
Using execjs 2.2.2
Using coffee-script 2.3.0
Using thor 0.19.1
Using railties 4.1.7
Using coffee-rails 4.0.1
Using unicode_utils 1.4.0
Using coolline 0.5.0
Using database_rewinder 0.4.1
Using orm_adapter 0.5.0
Using responders 1.1.1
Using warden 1.2.3
Using devise 3.4.1
Using diff-lcs 1.2.5
Using dotenv-deployment 0.0.2
Using dotenv 0.11.1
Using factory_girl 4.5.0
Using factory_girl_rails 4.5.0
Using ffi 1.9.6
Using figaro 1.0.0
Using font-awesome-rails 4.2.0.0
Using foreman 0.75.0
Using formatador 0.2.5
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.5
Using listen 2.7.11
Using lumberjack 1.0.9
Using method_source 0.8.2
Using pry 0.10.1
Using guard 2.7.3
Using rspec-support 3.1.2
Using rspec-core 3.1.7
Using rspec-expectations 3.1.2
Using rspec-mocks 3.1.3
Using rspec 3.1.0
Using guard-rspec 4.3.1
Using spring 1.1.3
Using guard-spring 0.0.4
Using tilt 1.4.1
Using haml 4.0.5
Using hike 1.2.3
Using hirb 0.7.2
Using unicode-display_width 0.1.1
Using hirb-unicode 0.0.5
Using multi_json 1.10.1
Using jbuilder 2.2.4
Using jquery-rails 3.1.2
Using jquery-ui-rails 5.0.2
Using kaminari 0.16.1
Using kgio 2.9.2
Using libv8 3.16.14.7
Using mini_portile 0.6.1
Using nested_form 0.3.2
Using nokogiri 1.6.4
Using pg 0.17.1
Using pry-byebug 2.0.0
Using pry-coolline 0.2.5
Using yard 0.8.7.6
Using pry-doc 0.6.0
Using pry-rails 0.3.2
Using rack-pjax 0.8.0
Using sprockets 2.11.3
Using sprockets-rails 2.2.0
Using rails 4.1.7
Using ruby-graphviz 1.0.9
Using rails-erd 1.1.0 from git://github.com/paulwittmann/rails-erd.git (at mavericks)
Using rails_serve_static_assets 0.0.2
Using rails_stdout_logging 0.0.3
Using rails_12factor 0.0.3
Using remotipart 1.2.1
Using safe_yaml 1.0.4
Using sass 3.2.19
Using sass-rails 4.0.4
Using rails_admin 0.6.5
Using rails_config 0.4.2
Using raindrops 0.13.0
Using rake_shared_context 0.2.1
Using rdoc 4.1.2
Using ref 1.0.5
Using rspec-rails 3.1.0
Using sdoc 0.4.1
Using simple_form 3.0.2
Using sqlite3 1.3.10
Using therubyracer 0.12.1
Using turbolinks 2.5.1
Using twitter-bootstrap-rails 3.2.0
Using uglifier 2.5.3
Using unicorn 4.8.3
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
run cp ../database.yml config from "."
run cp ../application.rb config from "."
run cp ../ja.bootstrap.yml config/locales from "."
run cp ../simple_form.ja.yml config/locales from "."
run rm config/locales/en.yml from "."
run wget https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/en.yml -P config/locales/ from "."
--2014-11-06 17:16:40-- https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/en.yml
Resolving raw.github.com... 199.27.79.133
Connecting to raw.github.com|199.27.79.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/en.yml [following]
--2014-11-06 17:16:42-- https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/en.yml
Resolving raw.githubusercontent.com... 199.27.79.133
Connecting to raw.githubusercontent.com|199.27.79.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4924 (4.8K) [text/plain]
Saving to: 'config/locales/en.yml'
100%[======================================================================================================================================================================>] 4,924 --.-K/s in 0.04s
2014-11-06 17:16:45 (124 KB/s) - 'config/locales/en.yml' saved [4924/4924]
run wget https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/ja.yml -P config/locales/ from "."
--2014-11-06 17:16:45-- https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/ja.yml
Resolving raw.github.com... 23.235.47.133
Connecting to raw.github.com|23.235.47.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/ja.yml [following]
--2014-11-06 17:16:49-- https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/ja.yml
Resolving raw.githubusercontent.com... 23.235.47.133
Connecting to raw.githubusercontent.com|23.235.47.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4924 (4.8K) [text/plain]
Saving to: 'config/locales/ja.yml'
100%[======================================================================================================================================================================>] 4,924 --.-K/s in 0.03s
2014-11-06 17:16:50 (190 KB/s) - 'config/locales/ja.yml' saved [4924/4924]
run wget https://raw.githubusercontent.com/starchow/rails_admin-i18n/master/locales/ja.yml from "."
--2014-11-06 17:16:50-- https://raw.githubusercontent.com/starchow/rails_admin-i18n/master/locales/ja.yml
Resolving raw.githubusercontent.com... 23.235.47.133
Connecting to raw.githubusercontent.com|23.235.47.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5232 (5.1K) [text/plain]
Saving to: 'ja.yml'
100%[======================================================================================================================================================================>] 5,232 --.-K/s in 0.03s
2014-11-06 17:16:52 (175 KB/s) - 'ja.yml' saved [5232/5232]
run mv ja.yml ./config/locales/rails_admin.ja.yml from "."
run cp ../ja.devise.yml config/locales/ja.devise.yml from "."
generate rspec:install
create .rspec
create spec
create spec/spec_helper.rb
create spec/rails_helper.rb
run rake -f ./make_default_models.rake model:create from "."
(in /Users/naokits/Desktop/application_templates)
cd redrose_app/
bundle exec rails generate scaffold album \
production:references \
code:string \
genre:integer \
category:integer \
its_genre1:integer \
its_genre2:integer \
amz_genre1:integer \
amz_genre2:integer \
artist_name:string \
artist_name_kana:string \
artist_name_en:string \
title:string \
title_kana:string \
title_alpha:string \
tracks:integer \
type:string \
source_type:string \
genban_code:string \
jan:string \
release_date:date \
price:integer \
price_with_tax:integer \
jacket_approval:string \
license_artist_image:string \
label:string \
sales_company:string \
comment:string \
web_catch:string \
artist_info:string \
memo:string \
senko_haisin:string \
senko_kaikin:date \
senko_service:string \
folder:string
invoke active_record
create db/migrate/20141106081723_create_albums.rb
create app/models/album.rb
invoke rspec
create spec/models/album_spec.rb
invoke factory_girl
create spec/factories/albums.rb
invoke resource_route
route resources :albums
invoke responders_controller
create app/controllers/albums_controller.rb
invoke erb
create app/views/albums
create app/views/albums/index.html.erb
create app/views/albums/edit.html.erb
create app/views/albums/show.html.erb
create app/views/albums/new.html.erb
create app/views/albums/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/albums/index.json.jbuilder
create app/views/albums/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold cp \
cp_code:string \
cp_shortname:string \
company_name:string \
company_kana:string \
dept:string \
tel1:string \
tel2:string \
fax:string \
zip:string \
addr:string \
doa:boolean \
staff:references \
memo:text \
site_name:string \
site_access_method:string \
bill_form_dept:string \
bill_form_name:string \
bill_form_addr:string \
bill_form_zip:string \
bill_form_type:string \
bill_form_no:string \
bill_form_flag:string \
bill_form_title:string \
bill_issue:string \
carry_over_price:string \
carry_over_flag:string \
tax_type:string \
tax_flag:string \
advanced_setting:string \
tanka_keisan:string \
min_guarantee:string \
pay_term:string \
cp_min_rate:string \
pay_method:string \
pay_day:string \
sinpu_annai:string \
kotei_kihon_rate:string \
renraku_email:string \
renraku_jimu_email:string \
dl_report_day:string \
contract_status:string \
contract_type:string \
contract_type_progress:string \
contract_last_action:date \
contracted_date:date \
contract_updated:date \
staff1_name:string \
staff1_email:string \
staff1_tel:string \
staff_post:string \
staff2_name:string \
staff2_tel:string \
announce1_name:string \
announce1_email:string \
announce2_name:string \
announce2_email:string \
ceo_name:string \
ceo_title:string
invoke active_record
create db/migrate/20141106081741_create_cps.rb
create app/models/cp.rb
invoke rspec
create spec/models/cp_spec.rb
invoke factory_girl
create spec/factories/cps.rb
invoke resource_route
route resources :cps
invoke responders_controller
create app/controllers/cps_controller.rb
invoke erb
create app/views/cps
create app/views/cps/index.html.erb
create app/views/cps/edit.html.erb
create app/views/cps/show.html.erb
create app/views/cps/new.html.erb
create app/views/cps/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/cps/index.json.jbuilder
create app/views/cps/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold pps_song \
proposal:references \
song_id:string \
service:string \
onair_date:string \
onair_limit_date:string \
sales_price:string \
wholesale_price:string \
cp_rate_type:integer \
cp_rate:integer \
pr_rate_type:integer \
pr_rate:integer
invoke active_record
create db/migrate/20141106081758_create_pps_songs.rb
create app/models/pps_song.rb
invoke rspec
create spec/models/pps_song_spec.rb
invoke factory_girl
create spec/factories/pps_songs.rb
invoke resource_route
route resources :pps_songs
invoke responders_controller
create app/controllers/pps_songs_controller.rb
invoke erb
create app/views/pps_songs
create app/views/pps_songs/index.html.erb
create app/views/pps_songs/edit.html.erb
create app/views/pps_songs/show.html.erb
create app/views/pps_songs/new.html.erb
create app/views/pps_songs/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/pps_songs/index.json.jbuilder
create app/views/pps_songs/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold production \
code:string \
short_name:string \
doa:boolean \
name:string \
label:string \
name_ruby:string \
tel1:string \
tel2:string \
fax:string \
addr:string \
cr_staff1_id:integer \
cr_staff2_id:integer \
contracted:date \
contract_updated:date \
hp_url:string \
zip:string \
pr_genre:string \
copyright_title:string \
report_form_name:string \
report_form_email:string \
m_bank_acc:string \
bank_name:string \
bank_branch:string \
acc_no:string \
acc_name:string \
acc_bank_no:string \
acc_bank_branch_no:string \
acc_reg_no:string \
pay_type:string \
withholding:string \
pay_flag:string \
pay_memo:string \
memo:string \
shiharai_chosho:string \
shiharai_chosho_addr:string \
ban_cp:string \
contract_status:string \
contract_type:string \
contract_type_progress:string \
contract_updated:date \
progress_report:string \
staff1_name:string \
staff1_email:string \
staff1_tel:string \
staff1_post:string \
staff2_name:string \
staff2_email:string \
staff2_tel:string \
staff2_post:string \
ceo_name:string \
ceo_title:string
invoke active_record
create db/migrate/20141106081816_create_productions.rb
create app/models/production.rb
invoke rspec
create spec/models/production_spec.rb
invoke factory_girl
create spec/factories/productions.rb
invoke resource_route
route resources :productions
invoke responders_controller
create app/controllers/productions_controller.rb
invoke erb
create app/views/productions
create app/views/productions/index.html.erb
create app/views/productions/edit.html.erb
create app/views/productions/show.html.erb
create app/views/productions/new.html.erb
create app/views/productions/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/productions/index.json.jbuilder
create app/views/productions/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold proposal \
cp:references \
title:string \
staff:references \
album:references \
accept:integer
invoke active_record
create db/migrate/20141106081833_create_proposals.rb
create app/models/proposal.rb
invoke rspec
create spec/models/proposal_spec.rb
invoke factory_girl
create spec/factories/proposals.rb
invoke resource_route
route resources :proposals
invoke responders_controller
create app/controllers/proposals_controller.rb
invoke erb
create app/views/proposals
create app/views/proposals/index.html.erb
create app/views/proposals/edit.html.erb
create app/views/proposals/show.html.erb
create app/views/proposals/new.html.erb
create app/views/proposals/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/proposals/index.json.jbuilder
create app/views/proposals/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold service \
name:string
invoke active_record
create db/migrate/20141106081851_create_services.rb
create app/models/service.rb
invoke rspec
create spec/models/service_spec.rb
invoke factory_girl
create spec/factories/services.rb
invoke resource_route
route resources :services
invoke responders_controller
create app/controllers/services_controller.rb
invoke erb
create app/views/services
create app/views/services/index.html.erb
create app/views/services/edit.html.erb
create app/views/services/show.html.erb
create app/views/services/new.html.erb
create app/views/services/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/services/index.json.jbuilder
create app/views/services/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold song \
production:references \
version:string \
disk_no:integer \
track_no:integer \
reged_id:string \
isrc:string \
genban_code:string:string \
title:string \
title_kana:string \
title_en:string \
add_info:string \
title_jpn:string \
title_jpn_kana:string \
artist_name:string \
artist_name_kana:string \
artist_name_en:string \
conductor_name:string \
conductor_name_jpn:string \
player_name:string \
player_name_jpn:string \
lyrics_name:string \
lyrics_name_kana:string \
composer_name:string \
composer_name_kana:string \
arranger_name:string \
reg_flag2:string \
license_lyric:string \
reg_flag1:string \
comment:string \
remark:string \
label_name_en:string \
rights_manage:string \
jasrac_code:string \
elicense_code:string \
publisher:string \
rights_memo:string \
rights_notation:string \
time:string \
cut1:string \
cut2:string \
cut3:string \
rec_class:string \
ivkt_class:string \
is_live:string \
il_class:string \
translate:string \
medley:string \
ban_cp:string \
haisin_kigen:date
invoke active_record
create db/migrate/20141106081909_create_songs.rb
create app/models/song.rb
invoke rspec
create spec/models/song_spec.rb
invoke factory_girl
create spec/factories/songs.rb
invoke resource_route
route resources :songs
invoke responders_controller
create app/controllers/songs_controller.rb
invoke erb
create app/views/songs
create app/views/songs/index.html.erb
create app/views/songs/edit.html.erb
create app/views/songs/show.html.erb
create app/views/songs/new.html.erb
create app/views/songs/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/songs/index.json.jbuilder
create app/views/songs/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold song_cp_ban \
song:references \
cp:references \
allow:string \
jp:string \
eur:string \
aus:string \
us:string
invoke active_record
create db/migrate/20141106081927_create_song_cp_bans.rb
create app/models/song_cp_ban.rb
invoke rspec
create spec/models/song_cp_ban_spec.rb
invoke factory_girl
create spec/factories/song_cp_bans.rb
invoke resource_route
route resources :song_cp_bans
invoke responders_controller
create app/controllers/song_cp_bans_controller.rb
invoke erb
create app/views/song_cp_bans
create app/views/song_cp_bans/index.html.erb
create app/views/song_cp_bans/edit.html.erb
create app/views/song_cp_bans/show.html.erb
create app/views/song_cp_bans/new.html.erb
create app/views/song_cp_bans/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/song_cp_bans/index.json.jbuilder
create app/views/song_cp_bans/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold song_info \
song:references \
service:integer \
license:string \
price:integer \
pr_rate:string \
cp_rate:string \
onsale_date:string \
oversea_price:string
invoke active_record
create db/migrate/20141106081945_create_song_infos.rb
create app/models/song_info.rb
invoke rspec
create spec/models/song_info_spec.rb
invoke factory_girl
create spec/factories/song_infos.rb
invoke resource_route
route resources :song_infos
invoke responders_controller
create app/controllers/song_infos_controller.rb
invoke erb
create app/views/song_infos
create app/views/song_infos/index.html.erb
create app/views/song_infos/edit.html.erb
create app/views/song_infos/show.html.erb
create app/views/song_infos/new.html.erb
create app/views/song_infos/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/song_infos/index.json.jbuilder
create app/views/song_infos/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold staff \
name:string
invoke active_record
create db/migrate/20141106082003_create_staffs.rb
create app/models/staff.rb
invoke rspec
create spec/models/staff_spec.rb
invoke factory_girl
create spec/factories/staffs.rb
invoke resource_route
route resources :staffs
invoke responders_controller
create app/controllers/staffs_controller.rb
invoke erb
create app/views/staffs
create app/views/staffs/index.html.erb
create app/views/staffs/edit.html.erb
create app/views/staffs/show.html.erb
create app/views/staffs/new.html.erb
create app/views/staffs/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/staffs/index.json.jbuilder
create app/views/staffs/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold cr_rate \
cp:references \
service_type:integer \
rate:string
invoke active_record
create db/migrate/20141106082020_create_cr_rates.rb
create app/models/cr_rate.rb
invoke rspec
create spec/models/cr_rate_spec.rb
invoke factory_girl
create spec/factories/cr_rates.rb
invoke resource_route
route resources :cr_rates
invoke responders_controller
create app/controllers/cr_rates_controller.rb
invoke erb
create app/views/cr_rates
create app/views/cr_rates/index.html.erb
create app/views/cr_rates/edit.html.erb
create app/views/cr_rates/show.html.erb
create app/views/cr_rates/new.html.erb
create app/views/cr_rates/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/cr_rates/index.json.jbuilder
create app/views/cr_rates/show.json.jbuilder
cd -
cd redrose_app/
bundle exec rails g scaffold pr_rate \
production:references \
service_type:integer \
rate:string
invoke active_record
create db/migrate/20141106082038_create_pr_rates.rb
create app/models/pr_rate.rb
invoke rspec
create spec/models/pr_rate_spec.rb
invoke factory_girl
create spec/factories/pr_rates.rb
invoke resource_route
route resources :pr_rates
invoke responders_controller
create app/controllers/pr_rates_controller.rb
invoke erb
create app/views/pr_rates
create app/views/pr_rates/index.html.erb
create app/views/pr_rates/edit.html.erb
create app/views/pr_rates/show.html.erb
create app/views/pr_rates/new.html.erb
create app/views/pr_rates/_form.html.erb
invoke rspec
invoke rspec
invoke jbuilder
create app/views/pr_rates/index.json.jbuilder
create app/views/pr_rates/show.json.jbuilder
cd -
タスク: model:create
cd redrose_app/
rake db:migrate
== 20141106081723 CreateAlbums: migrating =====================================
-- create_table(:albums)
-> 0.0067s
== 20141106081723 CreateAlbums: migrated (0.0069s) ============================
== 20141106081741 CreateCps: migrating ========================================
-- create_table(:cps)
-> 0.0064s
== 20141106081741 CreateCps: migrated (0.0066s) ===============================
== 20141106081758 CreatePpsSongs: migrating ===================================
-- create_table(:pps_songs)
-> 0.0042s
== 20141106081758 CreatePpsSongs: migrated (0.0044s) ==========================
== 20141106081816 CreateProductions: migrating ================================
-- create_table(:productions)
-> 0.0051s
== 20141106081816 CreateProductions: migrated (0.0052s) =======================
== 20141106081833 CreateProposals: migrating ==================================
-- create_table(:proposals)
-> 0.0091s
== 20141106081833 CreateProposals: migrated (0.0093s) =========================
== 20141106081851 CreateServices: migrating ===================================
-- create_table(:services)
-> 0.0018s
== 20141106081851 CreateServices: migrated (0.0019s) ==========================
== 20141106081909 CreateSongs: migrating ======================================
-- create_table(:songs)
-> 0.0072s
== 20141106081909 CreateSongs: migrated (0.0074s) =============================
== 20141106081927 CreateSongCpBans: migrating =================================
-- create_table(:song_cp_bans)
-> 0.0052s
== 20141106081927 CreateSongCpBans: migrated (0.0053s) ========================
== 20141106081945 CreateSongInfos: migrating ==================================
-- create_table(:song_infos)
-> 0.0040s
== 20141106081945 CreateSongInfos: migrated (0.0042s) =========================
== 20141106082003 CreateStaffs: migrating =====================================
-- create_table(:staffs)
-> 0.0019s
== 20141106082003 CreateStaffs: migrated (0.0020s) ============================
== 20141106082020 CreateCrRates: migrating ====================================
-- create_table(:cr_rates)
-> 0.0039s
== 20141106082020 CreateCrRates: migrated (0.0041s) ===========================
== 20141106082038 CreatePrRates: migrating ====================================
-- create_table(:pr_rates)
-> 0.0030s
== 20141106082038 CreatePrRates: migrated (0.0032s) ===========================
cd -
generate bootstrap:install
insert app/assets/javascripts/application.js
create app/assets/javascripts/bootstrap.js.coffee
create app/assets/stylesheets/bootstrap_and_overrides.css
create config/locales/en.bootstrap.yml
gsub app/assets/stylesheets/application.css
generate bootstrap:layout
force app/views/layouts/application.html.erb
generate simple_form:install
create config/initializers/simple_form.rb
create config/initializers/simple_form_bootstrap.rb
exist config/locales
create config/locales/simple_form.en.yml
create lib/templates/erb/scaffold/_form.html.erb
===============================================================================
Be sure to have a copy of the Bootstrap stylesheet available on your
application, you can get it on http://twitter.github.com/bootstrap.
Inside your views, use the 'simple_form_for' with one of the Bootstrap form
classes, '.form-horizontal', '.form-inline', '.form-search' or
'.form-vertical', as the following:
= simple_form_for(@user, html: {class: 'form-horizontal' }) do |form|
===============================================================================
generate bootstrap:themed
force app/views/albums/index.html.erb
force app/views/albums/new.html.erb
force app/views/albums/edit.html.erb
force app/views/albums/_form.html.erb
force app/views/albums/show.html.erb
generate bootstrap:themed
force app/views/cps/index.html.erb
force app/views/cps/new.html.erb
force app/views/cps/edit.html.erb
force app/views/cps/_form.html.erb
force app/views/cps/show.html.erb
generate bootstrap:themed
force app/views/pps_songs/index.html.erb
force app/views/pps_songs/new.html.erb
force app/views/pps_songs/edit.html.erb
force app/views/pps_songs/_form.html.erb
force app/views/pps_songs/show.html.erb
generate bootstrap:themed
force app/views/productions/index.html.erb
force app/views/productions/new.html.erb
force app/views/productions/edit.html.erb
force app/views/productions/_form.html.erb
force app/views/productions/show.html.erb
generate bootstrap:themed
force app/views/proposals/index.html.erb
force app/views/proposals/new.html.erb
force app/views/proposals/edit.html.erb
force app/views/proposals/_form.html.erb
force app/views/proposals/show.html.erb
generate bootstrap:themed
force app/views/services/index.html.erb
force app/views/services/new.html.erb
force app/views/services/edit.html.erb
force app/views/services/_form.html.erb
force app/views/services/show.html.erb
generate bootstrap:themed
force app/views/songs/index.html.erb
force app/views/songs/new.html.erb
force app/views/songs/edit.html.erb
force app/views/songs/_form.html.erb
force app/views/songs/show.html.erb
generate bootstrap:themed
force app/views/song_cp_bans/index.html.erb
force app/views/song_cp_bans/new.html.erb
force app/views/song_cp_bans/edit.html.erb
force app/views/song_cp_bans/_form.html.erb
force app/views/song_cp_bans/show.html.erb
generate bootstrap:themed
force app/views/song_infos/index.html.erb
force app/views/song_infos/new.html.erb
force app/views/song_infos/edit.html.erb
force app/views/song_infos/_form.html.erb
force app/views/song_infos/show.html.erb
generate bootstrap:themed
force app/views/staffs/index.html.erb
force app/views/staffs/new.html.erb
force app/views/staffs/edit.html.erb
force app/views/staffs/_form.html.erb
force app/views/staffs/show.html.erb
generate bootstrap:themed
force app/views/cr_rates/index.html.erb
force app/views/cr_rates/new.html.erb
force app/views/cr_rates/edit.html.erb
force app/views/cr_rates/_form.html.erb
force app/views/cr_rates/show.html.erb
generate bootstrap:themed
force app/views/pr_rates/index.html.erb
force app/views/pr_rates/new.html.erb
force app/views/pr_rates/edit.html.erb
force app/views/pr_rates/_form.html.erb
force app/views/pr_rates/show.html.erb
generate controller
create app/controllers/home_controller.rb
route get 'home/index'
invoke erb
create app/views/home
create app/views/home/index.html.erb
invoke rspec
route root to: 'home#index'
run cp ../constants.rb config/initializers from "."
generate rails_admin:install
- Using [admin] for question 'Where do you want to mount rails_admin?'
route mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
create config/initializers/rails_admin.rb
generate devise:install
create config/initializers/devise.rb
create config/locales/devise.en.yml
===============================================================================
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
in config/environments/development.rb:
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
In production, :host should be set to the actual host of your application.
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root to: "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
4. If you are deploying on Heroku with Rails 3.2 only, you may want to set:
config.assets.initialize_on_precompile = false
On config/application.rb forcing your application to not access the DB
or load models when precompiling your assets.
5. You can copy Devise views (for customization) to your app by running:
rails g devise:views
===============================================================================
generate devise
invoke active_record
create db/migrate/20141106082541_devise_create_users.rb
create app/models/user.rb
invoke rspec
create spec/models/user_spec.rb
invoke factory_girl
create spec/factories/users.rb
insert app/models/user.rb
route devise_for :users
rake db:migrate
== 20141106082541 DeviseCreateUsers: migrating ================================
-- create_table(:users)
-> 0.0314s
-- add_index(:users, :email, {:unique=>true})
-> 0.0037s
-- add_index(:users, :reset_password_token, {:unique=>true})
-> 0.0029s
== 20141106082541 DeviseCreateUsers: migrated (0.0386s) =======================
generate bootstrap:themed
create app/views/user/index.html.erb
create app/views/user/new.html.erb
create app/views/user/edit.html.erb
create app/views/user/_form.html.erb
create app/views/user/show.html.erb
run bundle exec annotate from "."
Annotated (13): Album, Cp, CrRate, PpsSong, PrRate, Production, Proposal, Service, Song, SongCpBan, SongInfo, Staff, User
rake erd
Loading application environment...
Loading code in search of Active Record models...
Generating Entity-Relationship Diagram for 13 models...
Done! Saved diagram to erd.pdf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment