Quoting Rodrigo Alves Vieira <[email protected]>: > Hello everyone, in a test helper in my app I call category.id that gets the > id of category in the database. However, when running RSpec I get the > following error: > > As a parla customer > /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning: > Object#id will be deprecated; use Object#object_id
I use category[:id] instead and it always works as expected. Clumsy, a kludge, but it works. HTH, Jeffrey -- 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.

