search for: private_messag

Displaying 4 results from an estimated 4 matches for "private_messag".

Did you mean: private_messages
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
...signups"=>"immediately", "emails_delivery_period_polls"=>"immediately", "emails_delivery_period_attachments"=>"i mmediately", "emails_delivery_period_advanced_signups"=>"immediately", "emails_delivery_period_private_messages"=>"immediately", "emails_delivery_period_group_messages"=>"immediately", "password"=>"[FILTERED]", "password_confirmation"=>" [FILTERED]"}, "commit"=>"Update"} User Load (0.9ms) SELECT...
2006 Aug 16
4
Undefined method - what undefined method
I am doing a typical database list, but when I 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> Ext...
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/.
2007 Nov 05
0
Authentication: is a guest a user or an "exception"?
...rnative 1: guests do not really exist, they are handled in the view code (view code knows that there''s a difference between guests and logged in users and checks accordingly) Hello <%= member_logged_in? ? member.nickname : ''Guest'' %>! <%= "You have #{member.private_messages.find_by_status(:unread)} unread PM''s" if member_logged_in? %> While the member function looks something like that: def member Member.find_by_id(session[:member_id]) end ---------------------------------------------------------- Alternative 2: the guest user exists in the da...