On 26 February 2012 21:32, Bob Smith <[email protected]> wrote: > Finally found it. Here it is for anyone else in similar trouble. > > def add_person > person = Person.new() > person.hoh = $hoh > $hoh = $hoh - 1 > render :update do |page| > page.insert_html :bottom, 'empty', :partial => 'shared/ > person', :object => person > end > end
Global variables? For the love of all that's OO, at least hide it behind a singleton :-/ *shakes head* -- 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.

