Hi, First of all, if you want to use puts in your views, use <% %> tags rather than <%= %> tags. Secondly, if you load your partials once you have your data object(@project) with appropriate value your page should display the same. But if you change the value of @project.version after the partial is loaded, it would not be reflected on the page until you reload the particular div which has the text field tag with the partial.
-NAYAK On Tue, Dec 30, 2008 at 6:42 PM, Zhao Yi <[email protected]>wrote: > > I defines a partial see below: > <%= > puts @project.version > text_field_tag "project_version", @project.version > %> > > I want the project version update-to-date. The first line can print the > correct version value but the text field doesn't refresh to the new > version. > -- > 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 -~----------~----~----~----~------~----~------~--~---

