2016-12-04から1日間の記事一覧

Capistrano config/deploy/production.rb

config/deploy/production.rbのroleについて サーバーが一台の場合 server 'hostname', user: 'username', roles: %w{app db web} set :ssh_options, { port: 'ssh-port', keys: File.expand_path('key-path'), } でよいが、 サーバーが複数の場合は、 role …

gem 'data-confirm-modal'

link_to "", ~_path, data: { confirm: ~ } としたときに、表示されるモーダルウィンドウのスタイルを変更するには、 data-confirm-modal が便利。 bundle install後、 //= requiredata-confirm-modal をapplication.jsに追記。(あるいは、github上のdata-c…