On 26 February 2012 21:32, Bob Smith 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 15 of 15 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 8, '12 at 7:13a
activeFeb 26, '12 at 9:52p
posts15
users7
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase