search for: privatemessage

Displaying 3 results from an estimated 3 matches for "privatemessage".

Did you mean: private_messages
2006 Aug 16
4
Undefined method - what undefined method
...do <% for m in @private_messages %> (Line 28) It tells me that the method ''each'' is undefined. What''s wrong, I did not call the method each.... Here''s the error: Showing app/views/account/mail.rhtml where line #28 raised: undefined method `each? for #<PrivateMessage:0x408bb830> Extracted source (around line #28): 25: <th width="69" bgcolor="#F3D54A" scope="col">Reply </th> 26: <th width="71" bgcolor="#EB7761" scope="col">Delete </th> 27: </tr> 28: <% for...
2006 Jul 13
5
ActiveRecord inheritance
How to create a super class based on ActiveRecord::Base? For example: class ParentRecord < ActiveRecord::Base end class ChildRecord < ParentRecord end Rails always asks for ''parent_records'' table. Which has absolutely no need to exist at all. It''s intentionally made as a super class to be inherited. Thanks. -- Posted via http://www.ruby-forum.com/.
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
...t;}, "commit"=>"Update"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 1061) LIMIT 1 CACHE (1.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 1061) LIMIT 1 PrivateMessage Load (1.2ms) SELECT DISTINCT(private_messages.id) FROM "private_messages" LEFT JOIN private_messages_users mu ON mu.to_id = 1061 WHERE (((mu.private_message_id = private_messages.id and mu.to_status = ''unread'') or (priv ate_messages.user_id = 1061 and private_messages.u...