Ruby on Rails チュートリアルの5章のメモ

パーシャルってなんだ!

partialの意味 - 英和辞典 Weblio辞書

わかんねえ!分離しってるってこと?

jspをパーツ単位で書いてそれぞれincludeしようねみたいな話?

 

Fetching gem metadata from https://rubygems.org/.........

Resolving dependencies...

You have requested:

  sprockets = 2.11.0

 

The bundle currently has sprockets locked at 2.12.3.

Try running `bundle update sprockets`

 たぶんあれのせい。

gem 'sprockets', '2.11.0'

gem 'sprockets', '2.12.3'

 

アセットパイプラインがなんだかさっぱりわかんねえ。

テストが全然通らなくなったぞ。

 

No DRb server is running. Running in local process instead ...

FF.FFFFFF

 

Failures:

 

  1) Static pages Home page should have content "Sample App"

     Failure/Error: it { should have_content('Sample App') }

     Capybara::Ambiguous:

       Ambiguous match, found 2 elements matching xpath "/html"

     # ./spec/requests/static_pages_spec.rb:10:in `block (3 levels) in <top (required)>'

カピバラが曖昧らしい。

==============================

<html>

~~~~

</html>v

==============================

こんなんなってた。かわいい。

 

  1) Static pages Home page

     Failure/Error: it { should have_title(full_title('')) }

     NoMethodError:

       undefined method `full_title' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007fa5778e1088>

     # ./spec/requests/static_pages_spec.rb:11:in `block (3 levels) in <top (required)>'

こんなんもでた。full_titleがないって、あるよ!

3章で

spec/support/utilities.rb

を作れって書いてあるの完全に無視してた。

 

そろそろわかんねー要素が大分増えてきた。

基本的にこういうのはわかんねーまま進めることにしています。

こういうわかんねー要素をわかるようにしながら進めると全然すすまねーってなって飽きちゃうからです。

 

Herokuってすさまじい量のRails tutorialで作るアプリ(とその途中で諦められたアプリ)がデプロイされてそう。

チュートリアルの最後にGitHubとHerokuからリポジトリを削除するくだりとかあったりして。