[rspec-users] <help> renders new/edit user_mst form

David Chelimsky dchelimsky at gmail.com
Mon Jun 10 09:34:56 UTC 2013

On Mon, Jun 10, 2013 at 4:25 AM, oliver <oliverjesus2008 at yahoo.com> wrote:

> <%= f.select :group_name,
> options_for_select(@group_mst.collect{|x| [x.group_name]}), {:multiple =>
> :multiple} %>
> that is on the line 44.

And the error raised on that line says "The error occurred while evaluating
nil.collect". The only thing receiving "collect" on that line is
@group_mst, so the spec has to do something to assign an Enumerable to
@group_mst before calling render in the spec. Is there a line in the
controller that assigns something to @group_mst? If so, what's on that line?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20130610/55353d38/attachment.html>

More information about the rspec-users mailing list