Colin Law wrote in post #1056490:
>
> I think the problem is that you have just used
> <%= render 'form' %>
> to render the form.  You have not passed the @activity variable to the
> form.  Have a look at the Rails Guide on Layouts and Rendering for how
> to use :locals to pass variables when rendering a partial.
>
> Colin

Thanks for your response Colin.
I tried to test it without the partial so I replaced the <%= render 
'form' %> with the body of the partial but I still get the same error 
message.
So the passing of the variable into the partial cannot be the reason for 
the problem.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to