On 14 April 2012 14:11, Julian P. <[email protected]> wrote:
> 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.

Put the form back in the view if you really think that and try again.
If you still get the error then post the view and the error message.
Copy and paste, do not retype.

Colin

>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>



-- 
gplus.to/clanlaw

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to