How to get datetime_select params?

Hey all,
I do a:
<%= datetime_select ‘user’, ‘registered_after’ %>

but then when I try to do @dateregister =
params[:user][:datetime_select] it’s nil. I know it has to do
something with multi-parameter assignment but I don’t know much than
that. Basically I would like to put the value of the selected date
from my datetim_select in a @date var object.

Any idea how to do that?

thanx in advance

Pat

I think it would be:

@dateregister = params[:user][:registered_after]

c.

Patrick A. wrote:

Hey all,
I do a:
<%= datetime_select ‘user’, ‘registered_after’ %>

but then when I try to do @dateregister =
params[:user][:datetime_select] it’s nil. I know it has to do
something with multi-parameter assignment but I don’t know much than
that. Basically I would like to put the value of the selected date
from my datetim_select in a @date var object.

Any idea how to do that?

thanx in advance

Pat

On 10/26/06, Cayce B. [email protected] wrote:

I think it would be:

@dateregister = params[:user][:registered_after]

sorry that was a typo, this is what I do @dateregister =
params[:user][:registered_after] but I get nil. any idea why?

Patrick A. wrote:

On 10/26/06, Cayce B. [email protected] wrote:

I think it would be:

@dateregister = params[:user][:registered_after]

sorry that was a typo, this is what I do @dateregister =
params[:user][:registered_after] but I get nil. any idea why?

I do not know whether this is good solusion
params[:user][‘postme(1i)’] like so to take individual componets of the
date select