ruby on rails 3 - How can I use a model named Collector in a controller? -
i'm trying in controller:
@collector = collector.find(params[:id])
but when do, error:
undefined method `find' actioncontroller::mimeresponds::collector:class
how can show i'm trying utilize activerecord model named collector?
try refer class prefixed :: in ::collector
ruby-on-rails-3 activerecord
No comments:
Post a Comment