[Rails] Re: logging events app?

2010-05-04 Thread Mike P.
John Griffiths wrote: > John Griffiths wrote: >> is there a webapp out there that allows the developer to log events >> (user emails joe, user logs out at xyz) that you can then turn into a >> report? >> >> seems pretty simple, wonder if someone's done it already? > > to elaborate, there are many

[Rails] Re: Getting class in /lib folder to see a model (const_miss

2010-05-04 Thread Mike P.
Frederick Cheung wrote: > On May 4, 3:35�pm, "Mike P." wrote: > >> Thanks for your response. The other parts of the app (i.e. the >> controllers) do seem to pick up this model. The class in the /lib folder >> is being used separately. I'm currently runni

[Rails] Re: Getting class in /lib folder to see a model (const_miss

2010-05-04 Thread Mike P.
Frederick Cheung wrote: > On May 4, 2:57�am, "Mike P." wrote: > >> I would have probably just used "require ../models/model_a.rb", but I >> found the following at StackOverflow: >> >> "One way to solve this would be to explicitly require the

[Rails] Getting class in /lib folder to see a model (const_missing)?

2010-05-03 Thread Mike P.
Hello, I wrote a new class that I decided to put in the /app/lib folder. Part way through one of the methods, I call #new on the model, update some of the fields and then call #save (on the model). When I do this though, I get a 'const_missing' error coming from Active Support. Here's the error:

[Rails] Re: Re: Re: Best way to handle multiple tables to replace on

2010-04-28 Thread Mike P.
Marnen Laibow-Koser wrote: > Michael Pavling wrote: >> On 26 April 2010 02:08, Mike P. wrote: >>> So, I'm trying to get the fuel before starting, not when I absolutely >>> need it. >> >> I think it seems to some that what you might be doing is fill

[Rails] Re: Re: Best way to handle multiple tables to replace one bi

2010-04-25 Thread Mike P.
Thank you Colin and Marnen for your repsonses. Marnen Laibow-Koser wrote: > Colin Law wrote: >> On 25 April 2010 00:45, Mike P. wrote: >>>... >>> I think if people could just get over the "don't optimize too early" >>> mantra, and realize that t

[Rails] Re: Best way to handle multiple tables to replace one big ta

2010-04-24 Thread Mike P.
Marnen Laibow-Koser wrote: > Mike P. wrote: >> Marnen Laibow-Koser wrote: >>> Mike P. wrote: >>>> Hello, >>>> >>>> I've decided to use multiple tables for an entity (e.g. "todo_items1," >>>> "todo_items2,"

[Rails] Re: Best way to handle multiple tables to replace one big ta

2010-04-23 Thread Mike P.
Marnen Laibow-Koser wrote: > Mike P. wrote: >> Hello, >> >> I've decided to use multiple tables for an entity (e.g. "todo_items1," >> "todo_items2," "todo_items3," etc.), instead of just one main table >> which could end up hav

[Rails] Re: Best way to handle multiple tables to replace one big ta

2010-04-23 Thread Mike P.
Robert Walker wrote: > Mike P. wrote: >> Hello, >> >> I've decided to use multiple tables for an entity (e.g. "todo_items1," >> "todo_items2," "todo_items3," etc.), instead of just one main table >> which could end up having a l

[Rails] Best way to handle multiple tables to replace one big table?

2010-04-23 Thread Mike P.
Hello, I've decided to use multiple tables for an entity (e.g. "todo_items1," "todo_items2," "todo_items3," etc.), instead of just one main table which could end up having a lot of rows (e.g. just "todo_items"). I'm doing this to try and to avoid a potential future performance drop that could come

[Rails] Another TimeZone Question - Multiple Legacy Databases

2009-04-09 Thread Mike P
We had to create a reporting software that connects to multiple databases that are all in different time zones. Is there any way for us to tell Rails which time zone each database is in and still be able to have time zone support? I need to be able to tell rails to pull the data from the various