Ruby on Rails Discussions
how do i check if an object has a particular field?
rubyonrails-talk
George_Bailey
(George Bailey)
September 6, 2007, 5:43pm
1
the_object.respond_to?(“complete”)
Should work.