Rails

Rails

Springは直に入れよう。

jonleighton/springInstall the spring gem. You can add it to your Gemfile if you like but it's optional. You now have a s...
Rails

reorderが復活していた。

default_scopeを個別に外す。 » サイキョウライン ここでdeprecatedを見かけて以来exceptを使っていたのですが、すぐあとにあっさり解除されていたことを知りました。 rails/activerecord/CHANGE...
Rails

scopeでTimeを使う。

実録!Railsのはまりポイント10選 from Drecom Co., Ltd. いやーしっかりハマりました。 Deprecate eager-evaluated scopes. · 0a12a5f · rails/rails · Git...
Rails

溜まったmigrationファイルとその取り扱いについて。

% ls db/migrate | wc -l がもう少しで4桁— MIKAMI Yoshiyukiさん (@yoshuki) 2013年2月20日 こんなのを見かけたので。 溜まったmigrationファイルまとめる方法とかってあるんです...
Rails

habtmというメソッド。

Ruby on Rails Guides: A Guide to Active Record AssociationsThe use of extra attributes on the join table in a has_and_be...
Rails

omniauth-facebookで複数アプリを使う。

RailsでFacebookのOAuthをするにはomniauth-facebookが便利ですが、そのままだと1つのアプリしか使うことが出来ません。 mkdynamic/omniauth-facebookprovider :facebook...
Rails

deviseでトークンを作っているところ。

URLに含まれることもあるワンタイムトークンを自分で用意する必要があって、deviseの実装を見に行ったらこんなんだった。 devise/lib/devise.rb at master · plataformatec/devise · Gi...
Rails

heroku db:push でエラーが、ね。

Taps Server Error: PGError: ERROR: time zone displacement out of range: "2012-02-29 12:00:00.000000+5894368800" こんなん出たんで...
Rails

fixtureにcsvが使えなくなる。

DEPRECATION WARNING: read_csv_fixture_files is deprecated and will be removed from Rails 3.2. なんてことを言われてるんですが、なんでcsv受け付け...
Rails

Rails3.1でPsych::SyntaxErrorの時に見るところ。

Commit dc94d813e2d158c5a284212c5d8146c677dbb877 to rails/rails - GitHubfixing invalid yaml ここ、あなたのconfig/locales/active_...