[Rails] Re: adding methods, accessing from console and rake tasks

2009-04-10 Thread LukeG
Putting them in the model helped, getting a quick schooling in OOP from someone else helped, too :-) I changed the methods to class methods, and now it behaves as expected. Thanks! On Apr 10, 2:55 am, Frederick Cheung wrote: > On Apr 10, 4:35 am,LukeG wrote: > > > The original

[Rails] adding methods, accessing from console and rake tasks

2009-04-09 Thread LukeG
another noob question... how do I add methods to a class such that they can be access from the console and from rake? Details: I have a ruby script to fetch tweets from the search api. That works fine, saves my tweets to the db. I have a separate, basic rails app to view and manage the tweets an

[Rails] Re: initializing collection_select

2009-04-08 Thread LukeG
g the > partial? > > On Apr 7, 12:43 pm, Frederick Cheung > wrote: > > > On Apr 7, 5:21 am,LukeG wrote: > > > > I'm a noob. I've trolled the web and groups for help, but I just don't > > > know enough Rails to apply the solutions to

[Rails] initializing collection_select

2009-04-07 Thread LukeG
I'm a noob. I've trolled the web and groups for help, but I just don't know enough Rails to apply the solutions to my particular problem. I even got the screencast from Pragmatic Programmers, but still no dice. I'm having a problem getting my collection_select to initialize with a previously stor