search for: usercomments

Displaying 2 results from an estimated 2 matches for "usercomments".

Did you mean: user_comments
2011 Jan 26
13
undefined method `model_name' for NilClass:Class
...3: <div id="errorExplanation"> 4: <h2><%= pluralize(@user_comment.errors.count, "error") %> prohibited this user comment from being saved:</h2> (1) What exactly does this error message mean? From other posts I gather this is a null instance of UserComments, but this is to create a new instance? (2) What are the step-by-step methods I should follow to debug such issues? Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to t...
2006 Nov 27
3
ActiveRecord: Reference same table twice
Hi, I have 2 tables, "users", and "user_comments". I am trying to allow users to leave comments on each other''s profiles (eg, think youtube like this: http://www.youtube.com/profile_comment_all?user=google). Here is a simplified view of my database schema: mysql> describe users; +-----------------+--------------+------+-----+---------+----------------+ | Field