On Tue, 2009-03-10 at 00:24 +0100, Chris Gunnels wrote:
> 
> > Rails' default is that the table name is a plural version of the model
> > name.  That's because the Model typically represents a single record
> > from a table.  So the table named Users holds lots of records that are
> > access via the User model.
> 
> Im sorry the table name is users...here is the error message:
> NoMethodError in MemberController#index
> 
> undefined method `+' for #<User:0x44d3ca4>
> 
> RAILS_ROOT: C:/Ruby/MyProjects/ipod-give-away.com
> Application Trace | Framework Trace | Full Trace
> 
> C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:260:in
>  
> `method_missing'
> app/controllers/member_controller.rb:4:in `index'
> 
> Request
> 
> Parameters:
> 
> {"l"=>"ballhogjoni"}

What does the index method in member_controller.rb look like?


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to