Hi all. I am very new to ruby rails and I got this error.
undefined method `each’ for #Video:0x370bdd8 in selectaction.rhtml
that calls video controller
3:
<%= link_to(image_tag(“videos/#{video.video_thumbnail}”, 8: :size => ‘132x99’, 9: :border => 5, c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1792:in In videos_controller Now I didn’t define find_by_subject, but doesn’t rails do that for me |