#124 √ resolved
Martin Kihlgren

[patch][spec] There is no simple way to send dates, times etc as parameters

Reported by Martin Kihlgren | June 2nd, 2008 @ 04:28 PM | in 0.9.6

In RoR I grew accustomed to being able to send some parameters as some kind of magical composite parameter. Example: Date and Time objects get multiple parameters each, with each parameter defining the year, month, day, hour, minute, second etc of the object.

In merb that doesn't seem possible right now. So I built it!

There are two patches against merb-core, that adds a CompositeParamParser class under Request, and lets Request use it when producing parameters.

The CompositeParamParser go through all params and call predefined methods on predefined classes with all params that belong together according to a param index marker.

The other patch is a patch against merb-plugins that adds a whole lot of new #*_field and #*_control methods to Helpers::Form, that create this kind of magical parameters for simple to use date_control and time_control bliss.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins