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? -- Posted via http://www.ruby-forum.com/.
Quoting Michael Gao <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> > 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 Michael Gao <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>: >> >> 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, > JeffreyOk, it work, thanks -- Posted via http://www.ruby-forum.com/.