Why is the "Rails" error syntax with tick and quote?

Take the errors below:

undefined method `id' for true:TrueClass /dev/MessageBooth/db/seeds.rb:17:in `<top (required)>' /.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load' /.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `<main>' 

errors are surrounded by two different {quotes | tics}. I started looking for a very strange error that was not well documented and possibly related to the syntax, so I paid very close attention to the syntax and noticed this trend, but why use different encapsulating quotes?

+4
source share
1 answer

I saw this syntax in different languages ​​(mainly in C, I think). I especially like this explanation.

+5
source

All Articles