Help With partials

ok i'm having problems moving a piece of code into a partial

I have a line in a view:

<%= image_tag( createturing ) %>

moving to a partial _createturing.rhtml and changing the view to:

<div id="turing"><%= render(:partial => "createturing") %></div>

gives errors:

ActionView::TemplateError (can't convert nil into String) on line #1 of accounts/_createturing.rhtml: 1: <%= image_tag( createturing ) %>

what changes do i need to make when i move it into the partial?

btw: the function createturing is in a helper if that makes a differance!

ok i'm having problems moving a piece of code into a partial

I have a line in a view:

<%= image_tag( createturing ) %>

moving to a partial _createturing.rhtml and changing the view to:

<div id="turing"><%= render(:partial => "createturing") %></div>

gives errors:

ActionView::TemplateError (can't convert nil into String) on line #1 of accounts/_createturing.rhtml: 1: <%= image_tag( createturing ) %>

By default when looking at the partial createturing rails will set the
local variable createturing to the value of @createturing which would
seem to be nil. You however don't want to use the local variable createturing but the
method of the same name. You can force a method call by saying
createturing() instead of createturing

Fred

I knew that it had to be something easy i was missing!! and it works correctly now!! Thank you!!

now to implement my refresh of the div...