
dm-rails doesn't play nice with date_select
Reported by siplux | March 23rd, 2010 @ 02:44 PM
...and from date_time_select as well.
Rails returns params like:
"date_field(1i)" ... "date_field(ni)"
which obviously doesn't directly map to a property, and gives the error, "The attribute 'date_field(1i)' is not accessible in Model"
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) March 25th, 2010 @ 09:11 AM
- State changed from new to unconfirmed
- Milestone set to 1.0.0
Could you maybe upload a sample app that demonstrates the problem?
-
Martin Gamsjaeger (snusnu) March 30th, 2010 @ 09:10 PM
- State changed from unconfirmed to confirmed
-
Martin Gamsjaeger (snusnu) June 3rd, 2010 @ 08:31 AM
- Milestone cleared.
I think it's maybe best to just provide a before_filter in controllers (or maybe a rack middleware) that parses the various form params and merges them into one readymade Date(Time) param that can easily be consumed by regularly assigning it to the underlying Date(Time) property.
I don't think this is blocking the DM-1.0 release though, and I'm probably not able to get that in before 1.0 because I wanna work on more urgent things for now.
Removing the assigned Milestone for now.
-
Mark A. Richman November 15th, 2010 @ 02:44 PM
- Milestone order changed from 0 to 0
Just curious if there is a solution for this yet using datetime_select...
-
Dan Kubb (dkubb) December 22nd, 2010 @ 02:55 PM
- State changed from confirmed to resolved
(from [0b868c191cf0e29dbce63a31345ce2303220e4ef]) fixes #1222 dm-rails doesn't play nice with date_select https://github.com/datamapper/dm-rails/commit/0b868c191cf0e29dbce63...
-
Dan Kubb (dkubb) January 16th, 2011 @ 06:57 PM
(from [d0a0e26f69a0c54634c3ba22c6d59c5804e023ca]) fixes #1222 dm-rails doesn't play nice with date_select https://github.com/datamapper/dm-rails/commit/d0a0e26f69a0c54634c3b...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
-
1222 dm-rails doesn't play nice with date_select (from [0b868c191cf0e29dbce63a31345ce2303220e4ef]) fixes #...
-
1222 dm-rails doesn't play nice with date_select (from [d0a0e26f69a0c54634c3ba22c6d59c5804e023ca]) fixes #...