Undefined method `has_key?'

I update rails from 2.0.2 to 2.2.3, the line below can work at old
version but report error at new version

<%= render_partial “_jsdatacombo” %>

the error is:

undefined method `has_key?’ for “_jsdatacombo”:String

It seemed if I user render_partial function, the system always report
the error.

Any has ideas?

Quoting M. Gao [email protected]:

I update rails from 2.0.2 to 2.2.3, the line below can work at old
version but report error at new version

<%= render_partial “_jsdatacombo” %>

render_partial is obsolete. Use <%= render :partial => ‘jsdatacombo’ %>

(Rails will insert the underscore on the front of the name,
automagically.)

HTH,
Jeffrey

Jeffrey L. Taylor wrote:

Quoting M. Gao [email protected]:

I update rails from 2.0.2 to 2.2.3, the line below can work at old
version but report error at new version

<%= render_partial “_jsdatacombo” %>

render_partial is obsolete. Use <%= render :partial => ‘jsdatacombo’ %>

(Rails will insert the underscore on the front of the name,
automagically.)

HTH,
Jeffrey

Ok, it work, thanks