On 8 August 2011 10:36, Sayuj Othayoth <[email protected]> wrote:

Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate points in the previous message.
Thanks.
If you could manage to post in plain text rather than html it would
also make life more pleasant for some of us.

> Hi Colin,
>
> It results:
>
> NoMethodError in Status_message#index
>
> Showing
> /home/sayuj/work/sayuj/microblog/app/views/status_message/index.html.erb
> where line #9 raised:
>
> undefined method `unscoped' for Users:Module

Perhaps if you showed us the line causing the problem (and a few lines
around it) it might be easier to suggest a solution.
Also show the model class definitions for user and statusmessage.
Copy and paste the code, do not retype it.

Also tell us anything unusual about your setup.  Are you using an
authorisation gem for example?

Colin

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to