When I read Dave and Davids excellent book “Agile Web D. with
Rails” the first time, I was particularly impressed with the following
It was used in a test class to set the date of tomorrow dynamically.
it was enclosed in in ERb tags, I assumed this was a normal ruby
but when I tried it in my irb, i get the following error:
NoMethodError: undefined method `day’ for 1:Fixnum
I would be abliged if someone could explain to me how this works in ERb
not in standard ruby? Have I missed something fundamental here?