Knife throwing is both an art and a skill that’s difficult to master...
![Home](https://cdn-ak-scissors.b.st-hatena.com/image/square/53b7803fa77c92b40409dd2323d7afe9454d731a/height=288;version=1;width=512/https%3A%2F%2Fi0.wp.com%2Fmakezine.com%2Fwp-content%2Fuploads%2F2013%2F01%2Fmake_logo_rgb.jpg%3Ffit%3D1024%252C768%26ssl%3D1)
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files.
っていう質問がありました。以下は Rails 2.3.5 対応コードです。 config/initializers/00_load_config.rb AppConfig = YAML.load_file("#{RAILS_ROOT}/config/settings.yml")[RAILS_ENV].symbolize_keys としておいて、 config/settings.yml development: email: "development@example.com" test: email: "test@example.com" production: email: "production@example.com" などとしておけば、 モデルやコントローラーやビューなどで、 AppConfig[:email] でアクセス出来ます。 YAMLを使った方が、Rubyコードで直接書くより
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く