Getting "undefined method" error on form select in cucumber

Posted by zlog on Stack Overflow See other posts from Stack Overflow or by zlog
Published on 2010-04-16T02:28:29Z Indexed on 2010/04/16 2:33 UTC
Read the original article Hit count: 391

Filed under:
|

I'm trying to visit a page with cucumber, with:

visit new_video_path

but I get this error:

undefined method `episode_id' for #<Video:0x22df8dc> (ActionView::TemplateError)
On line #19 of app/views/videos/_form.html.erb
...
19:     <%= select(:video, :episode_id, @episodes.collect {|e| [ e.title, e.id ] }, { :include_blank => true }) %>

It loads fine in the browser, and the form processes fine too.

What did I do wrong?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about cucumber