title: Accessing data from Database View from Rails Console
body: <p>I have created a view according to this blog:
  <a href="http://viget.com/extend/rails-nested-has-many-through-with-sql-views" rel="nofollow">http://viget.com/extend/rails-nested-has-many-through-with-sql-views</a></p>
  
  <p>The migration was successful. My view name is the same as the blog (groupby_entries).</p>
  
  <p>I can see that view was successfully created and data is accessible from it when I do a select * on it from my DB UI.</p>
  
  <p>I would like to use this as a table from now on only to retrieve the data (group by queries).
  But, when I try to access the data from my rails console it throws an error:</p>
  
  <p>1.9.3p194 :002 > GroupbyEntry.find(:all)
  NameError: uninitialized constant GroupbyEntry</p>
  
  <p>Am I missing on adding something somewhere? Kindly let me know.. I tried Groupby_entry.find(:all) as well.. But it gives out the same error.</p>
  
  <p>Thanks,</p>