On 2 April 2010 12:16, Dudebot <craign...@gmail.com> wrote: > On Apr 2, 2:22 am, Colin Law <clan...@googlemail.com> wrote: > ... > > Checking the html, the database entries with phpMyAdmin, and the log > file were where I went first--I should have written that. It's all > there, just like the development environment. The log file was what > pointed me to the database call, and I mocked it up with a script/ > console call that mimicked the one in my model. That's when I > discovered that it looks like the date format isn't being passed > correctly in the params hash, which I find really weird. It is, after > all, coming from the database originally.
If the html is correct then it must be getting it out of the db ok so it is not a problem there. Yet you say the params are getting passed incorrectly from that html? is that in the log file you see that or after you get into the action? So what params are you seeing there in development and what in production? > > I think it may be how I pass the dates to the index view, as an array, > is where the formatting may change You say the html is correct in the index view so it cannot be an issue passing the dates to the index view, or you would see the wrong dates there. Colin > > labs = Lab.all( :conditions => [ "patient_id = ?", id ], :order => > "drawn DESC" ) > @dates = [] > labs.each { |lab| @dates << lab.drawn } > > But I could be wrong about that. > > Has anyone ever experienced a problem with date formatting like this? > And if so, how did you fix it? > > Another question for you gurus is, when I put a raise ---.to_yaml in > the production server code, those only appear in the logs, the > "errors" are prettily concealed on the production views. Any way to > temporarily shut that behavior off while I'm debugging the production > code? > > Again, many TIA, > Craig > > -- > 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 rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.