On Mar 24, 1:45 pm, James Byrne <[email protected]>
wrote:
> Frederick Cheung wrote:
>
> > because with a date you can't pull the value from the params hash in
> > one go like that - there is one value in the hash for each component
> > (day, month, year). There's more about this at
> >http://www.spacevatican.org/2008/12/3/dates-params-and-you
>
> > Fred
>
> I looked at this reference, but it seems to relate specifically to the
> Rails date chooser, which I am not using.
ah, you should have said :-)
> �[email protected]("effective_from=",2009-03-24 09:31:16 -0400)
Are you sure this is getting called ? perhaps attribute_present? is
returning false (if the previous value of the attribute was nil)
Fred
>
> And should be equivalent to:
> �[email protected]_from=params[:client][:effective_from]
>
> Which works without error.
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---