1. rbenvとは rbenvとは、rubyのバージョンを簡単に変更できるコマンドです。 これを利用することによって、プロジェクトごとにrubyのバージョンが異なる場合でも簡単にバージョンを切り替えて開発作業を行うことができます。 rbenvの詳細については、このあたりのページに書いていました。 2. 必要なパッケージのインストール まず、rbenvを利用するために必要なパッケージを以下のコマンドでインストールしていきます。
Railsでは、デフォルトでdevelopment、test、productionの3つの環境が用意されています。 しかし、QA環境、Staging環境といった環境が欲しくなることが往々にしてあります。そういった新しい環境を作る方法を説明します。 動作確認 Rails 4.1 Staging環境を追加 今回は、新しくパフォーマンスやキャッシュなどのテストができtodるstaging環境を追加してみます。 1. database.ymlを設定 database.ymlにステージング環境を追加する。 productionの内容をコピーし、環境名やDBの名前をstagingに変更します。 # config/database.yml default: &default adapter: sqlite3 pool: 5 timeout: 5000 development: <<: *default
This domain is expired. For renewal instructions please click here. This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
$ rails g 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/e
devise とは Rails でログイン認証管理を行う際のメジャーな Gem 。 以下の10個のモジュールからなる。 Database Authenticatable: DB に保存するパスワードの暗号化。ほぼ必須のモジュール。 POST リクエストや Basic 認証で使われる。 Omniauthable: OmniAuth サポートのためのモジュール。 Twitter などの外部サービスのアカウントでユーザー登録させたい場合に追加する。 Confirmable: アカウント作成の際のメール認証モジュール。 メール中のリンクをクリックしないとログインできないようにできる。 Recoverable: パスワードリセットが可能になる。 Registerable: サインアップ処理が可能になる。 Rememberable: クッキーに保存されたトークンの生成・削除を行う。 Trackable
=================================================================== 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 pr
前回の日記と順番は前後してしまったが、今まで適当に使っていたassertについても見直してみた。 assertのマニュアルページ Test::Unit - Rubyリファレンスマニュアル Rails Edge API documentation http://caboo.se/doc/classes/Test/Unit/Assertions.html http://caboo.se/doc/classes/ActionController/Assertions.html http://caboo.se/doc/classes/ActionController/Assertions/DomAssertions.html http://caboo.se/doc/classes/ActionController/Assertions/ModelAssertions.html http://cab
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く