bradphelan/rocket_tag — Issue #4: model.find_similar  not found
Author: RussellSnow
Created: 2012-02-18 15:42:12+00:00
State: open

What am I doing wrong?

ruby-1.9.2-p290 :078 > b.hardware
=> ["ff", "dfg"]
ruby-1.9.2-p290 :079 > b.class
=> Event(id: integer, name: string, description: text, created_at: datetime, updated_at: datetime)
ruby-1.9.2-p290 :080 > b.hardware
=> ["ff", "dfg"]
ruby-1.9.2-p290 :081 > b.find_similar
NoMethodError: undefined method `find_similar' for #
from /home/russell/.rvm/gems/ruby-1.9.2-p290/gems/activemodel-3.1.3/lib/active_model/attribute_methods.rb:385:in `method_missing'
from /home/russell/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/attribute_methods.rb:60:in `method_missing'
from (irb):81
from /home/russell/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in `start'
from /home/russell/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start'
from /home/russell/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/commands.rb:40:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'