tkymtk's blog

Ruby on Rails及びその周辺について調べたこと。Do whatever you want to do at your own pace.

Ruby on Rails Tutorial

childprocessというgemについて

例 Ruby on Rails Tutorialから。 * Learn Web Development with the Ruby on Rails Tutorial | Static Pages

Ruby on Rails Tutorial Chapter10 FactoryGirlを使って/使わないで書くRSpec

前準備

RSpec: カスタムマッチャ Rails Tutorialでハマったところ。should_notの動作

問題 should_notが期待通りに動作しない カスタムマッチャの定義 RSpec::Matchers.define :have_error_message do |message| match do |page| expect(page).to have_selector('div.alert.alert-error', text: message) end

Rails TutorialのフォームをBootstrap3で書き換えた

変更点 span6 offset3 から col-xs12 col-sm-6 col-sm-offset-3に変更。 それぞれのインプット要素を<div class="form-group">で包む インプット要素にclass: "form-control"を指定 ボタンのcssを、btn-largeからbtn-lgに変更。 ついでに、フォームタグにrole="form"を追加するための</div>…

Ruby on Rail Tutorial bootstrap-sassでハマった

.debug_dump { . . . @include box_sizing; } シンタックスエラーでできない。 .debug_dump { . . . @include box_sizing(border-box); } これで出来た。どうやら引数が必要なようだ。 bootstrap-less のソースコード // Box sizing .box-sizing(@boxmodel) …

Ruby on Rails Tutorial チャプター6 メモ

RoR Tutoarial のチャプター6.1.3 rails consoleで User.new を 実行した後、 開発ログをtailしたまま上を実行していた場合、実行後に新しい行が何も表示されないことに気付いた方もいると思います。 のような表記があります。最初なんのことかわからなかっ…

間違いがあれば、ご指摘下さると幸いです。