2014-12-01から1ヶ月間の記事一覧

Helper

app/helpers以下に配置。 application_helper.rbは全体共通。 例 app/helpers/how_price.rb module HowPriceHelper def how_price() #process end end viewにて、how_price()が利用可能になる。色々なヘルパースクリプトがネットに落ちてるっぽい。

ActionMailer

smtpサーバの設定 config/environments/development.rb config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => 'smtp.server', :port => 587, :domain => 'domain', :user_name => 'メールアドレス', :password…

[Ruby on Rails]View基本app/views/layouts/application.html.erb がベースとして読み込まれる。 上記ファイル内 に各コントローラーのテンプレートが読み込まれる。 コントローラーによって挙動を変える

Gitコマンドいろいろ

Git

http://sourceforge.jp/magazine/09/03/16/0831212 git branch 現在のブランチを表示 新規branch作成 git branch name branch切替 git checkout name branch削除 git branch -d \-Dリモートブランチを削除 git push origin :branchname branch名変更 git bra…