2013-03-30から1日間の記事一覧
・cakePHPにて、SQLでレコード取得 $sql = 'select * from table' // これはキャッシュされる $Model->query($sql); // キャッシュしたくないときは $Model->query($sql, false); ・先月の取得 // 3/29にこうすると date('Y/m', strtotime(' -1 month')); =>…
とりあえず、gemが対応されるまでこれで凌ごうかと。 1. Gemfile gem 'capistrano', group: :development 2. cap deployでエラー... orz cp: cannot stat `/var/www/sandbox/shared/assets/manifest.yml': No such file or directory 3. 原因 Rails 4 suppor…
とりあえず、gemが対応されるまでこれで凌ごうかと。 1. Gemfile gem 'devise', github: 'plataformatec/devise', branch: 'rails4' 2. エラー... orz `attr_accessible': `attr_accessible` is extracted out of Rails into a gem. Please use new recommen…
この辺はデフォルトで有効になっていたので、そのまま sendfile on; keepalive_timeout 65; 以下追加 # vim /etc/nginx/conf.d/virtual.conf client_max_body_size 20M;