0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails new

Last updated at Posted at 2015-03-23

プロジェクト作成
$ gem install bundler
$ mkdir project
$ cd project
$ bundle init
Writing new Gemfile to /path/to/project/Gemfile

$ vi Gemfile

A sample Gemfile

source "https://rubygems.org"

gem "rails"

$ bundle install --path vendor/bundle
$ bundle exec rails new . --skip-test-unit --skip-bundle -d mysql

  1. Gitにプロジェクトを登録
    git init
    git add .
    git c -m "initial commit"

  2. Gemを導入
    cp gem file
    bundle install --path vendor/bundle

  3. gemの設定
    rails g config:install

  4. development.rbを更新
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
    address: "localhost",
    port: 25,
    domain: "localhost.localdomain"
    }

Specify what domain to use for mailer URLs

config.action_mailer.default_url_options = {host: "localhost:3000"}

config.after_initialize do
Bullet.enable = true
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
Bullet.raise = true
Bullet.add_footer = true
end

6.規約準拠確認
bundle exec rubocop
--auto-correct

必須jquery
jquery.bootstrap-growl.min
jquery.livequery.min

rails g scaffold user --skip-view-specs --skip-controller-specs --skip-routing-specs --skip-request-specs --skip-jbuilder --skip-stylesheets

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?