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

Rails4.1 パンくずリスト

参考サイト Railsアプリにパンくずリストを追加する - Qiita Railsでパンくずリストを作るなら、breadcrumbs_on_railsがオススメ - nishio-dens's diary adexd.net カスタマイズ備忘録 app/views/shared/_breadcrumbs.html.haml - if elements.present? %ul.…

kaminariでno implicit conversion of StringIO into String (TypeError)が発生した時の対処法

環境 Ruby: 2.1.1 Rails: 4.1.0 kaminari: 0.15.1 事象 kaminariのビュー生成コマンドを実行 $ rails g kaminari:views bootstrap -e haml /home/vagrant/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/json/common.rb:155:in `initialize': no implicit conversio…

Rails4.1.0でrender_404/render_500

備忘録としてまとめておきます。 環境 Rails 4.1.0 設定 config/routes.rb get '*path' => 'application#render_404' app/controllers/application_controller.rb unless Rails.application.config.consider_all_requests_local rescue_from ActiveRecord::R…

Trac1.0にTags-0.7をインストールしてみた。

1年以上待ちに待ったTagsがようやくTrac1.0に、 対応したらしいので、早速インストールしてみました! 対応されたチケット http://trac-hacks.org/ticket/9521 fixedになってました。 2014年04月06日にリリースされてました。 前回のコメントは13ヶ月前だっ…