読者です 読者をやめる 読者になる 読者になる

Railsプロジェクト作成、Gemfile

Railsプロジェクトを作成

rails new touhou_arrange_chronicle -d postgresql

Railsプロジェクトに移動

cd touhou_arrange_chronicle

gemファイルを保存するディレクトリを作成

mkdir vendor/cache
  • .Gemfile
source 'https://rubygems.org'

gem 'rails', '3.2.5'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'therubyracer'
  gem 'uglifier', '>= 1.0.3'
  gem 'jquery_mobile-rails'
end

gem 'pg'
gem 'jquery-rails'
gem 'has_scope'
gem 'configatron'

group :production do
  gem 'thin'
end

group :development, :test do
  gem 'rspec-rails'
  gem 'pry-rails'
  gem 'pry-doc'
end

group :development do
  gem 'ruby-debug19'
  gem 'unicorn'
  gem 'magic-commenter'
end

group :test do
  gem 'factory_girl'
  gem 'spork-rails'
end

# vim: filetype=ruby

gemインストール

bundle install

config/database.yml を自分の環境に合わせて設定

  • DB作成
rake db:create


旧Gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.5'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'therubyracer'
  gem 'uglifier', '>= 1.0.3'
  gem 'jquery_mobile-rails'
end

gem 'pg'
gem 'jquery-rails'
gem 'haml-rails'
gem 'has_scope'
gem 'configatron'
gem 'twitter-bootstrap-rails'
gem 'twitter_bootstrap_form_for'
gem 'flotr2-rails', :git => 'git://github.com/littlebtc/flotr2-rails.git'

# Authentication
gem 'cancan'
gem 'devise'
gem 'roles_active_record'

# Pagination
gem 'kaminari'

# Exception
gem 'exception_notification_rails3', :require => 'exception_notifier'

group :production do
  gem 'thin'
end

group :development, :test do
  gem 'rspec-rails'
  gem 'pry-rails'
  gem 'pry-doc'
end

group :development do
  gem 'ruby-debug19'
  gem 'unicorn'
  gem 'hpricot'
  gem 'ruby_parser'
end

group :test do
  gem 'factory_girl'
  gem 'spork-rails'
end

# vim: filetype=ruby