I have generated a simple event app to learn and try to debug named_scope. But still have problem. My problem is still have not figure out how to call the named_scope (i.e. Event.upcoming). Not knowing exactly how, I tried to invoked it in various spots in the controller and also the view to no avail (and also used script/console). The online articles about named_scope I found just invoke it (or listed the usage line) below the model class. It looks so simple to understand but I guess I don't have enough brain power. Please help me out by giving a more concrete example. Thanks!
Hassan Schroeder wrote: > On Wed, Jul 29, 2009 at 10:40 AM, kevin > lee<[email protected]> wrote: >> >> I use ActiveScaffold in my project. �I posted, perhaps stupidly, a >> question on AS help forum on whether it supports named_scope > > I know zip about ActiveScaffold, but I imagine you would get more > useful help if you posted your actual model code and the controller > code where you're calling your named scope. > > Though -- a suggestion -- trying things out in the console is often an > effective way to debug a problem... > > FWIW, > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan -- 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 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 -~----------~----~----~----~------~----~------~--~---

