search for: ericlin

Displaying 5 results from an estimated 5 matches for "ericlin".

Did you mean: educlin
2008 Jun 10
5
Rails params parsing bug?
I have a form that sends the following query string to my Rails controller: transaxion[category_association_attributes][][category_id]=2& transaxion[category_association_attributes][][amount]=12& transaxion[category_association_attributes][][category_id]=1& transaxion[category_association_attributes][][amount]=8 But ActionController parses it as:
2008 Nov 19
3
Mock today
In some of my unit tests, I find the need to set today to a different value than the actual today. For example, to test the model method "balance_of_today", which takes no argument, I want to have Date.today be a specific date for the purpose of testing. In other words, I want to do something like this: mock_today(Date.new(2008, 2, 1)) do ... test code... end My implementation for
2008 May 30
1
Is DateTime and Time interchangeable?
I have datetime (SQL) column in my DB, and I noticed whenever I retrieve that column using ActiveRecord, it returns an object of class Time instead of DateTime. Does Rails convert treat datetime and time as if they''re the same? Eric --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Jun 13
3
Alternative to storing ActiveRecord object in session
I''m writing a wizard-like module in my application where, in a series of steps, the user builds upon an ActiveRecord object, and in the end, saves the AR object into the database. The ActiveRecord object is fairly complex, with a has_many association that could potentially get large, so I don''t want to store it directly in the session. In fact, having done so already caused a
2008 Apr 17
0
Lots of FIN_WAIT_1 TCP Connections and deadlock in zoneli state
Hi All, I am running squid as reverse proxy on FreeBSD 7.0-R amd64. After running for a while (~ 8 hours), the throughput degrades to very very low rate. I found the squid is in "zoneli" state and is already a bug report on http://www.freebsd.org/cgi/query-pr.cgi?pr=106317 But after more investigation, I found there are lots of TCP Connections in FIN_WAIT_1 and never close. # netstat