Weird bug with date_select

Hi Folks,

I’m having such a weird problem with the DateHelper. Here is how I’m
using it, from the view:

Birth date
<%= x.date_select(:birth_date, :start_year => 1900) %>

x is the variable that is being yield from a fields_for.

There are more fields in the same form, and they work just perfect.

When I try to submit the form, I get a
ActiveRecord::MultiparameterAssignmentErrors in UsersController#edit

And here is the page source I got in the browser:

Birth date

1900 1901 1902 1903 ... January February March ... 1 2 3 ...

If you look carefully, you’re going to see that the select tag for
month is with a very wierd name, wich is:

And the year and date fields are just ok!

Any tips?

Cheers!


Adriano M. Marques

http://adriano-marques.blogspot.com
http://umit.sourceforge.net
[email protected]

“Don’t stay in bed, unless you can make money in bed.” - George Burns

Hey guys… Does someone can give a hand here?

On Nov 29, 2007 7:43 PM, Adriano M. [email protected] wrote:

There are more fields in the same form, and they work just perfect.

1903 name="start_year1900prefixextended_profile[birth_date(2i)]discard_typetrueorderyearmonthday[month]">

http://adriano-marques.blogspot.com
http://umit.sourceforge.net
[email protected]

“Don’t stay in bed, unless you can make money in bed.” - George Burns


Adriano M. Marques

http://adriano-marques.blogspot.com
http://umit.sourceforge.net
[email protected]

“Don’t stay in bed, unless you can make money in bed.” - George Burns

Hi,
Pls have a look on this link…Will get a slution for your problem.

http://railsmanual.org/class/ActiveRecord::MultiparameterAssignmentErrors

I have already seen that page… It didn’t help, because the date is
correct, the problem is the formation of the html tag.

Any other tip, please?

---------- Forwarded message ----------
From: [email protected] [email protected]
Date: Dec 3, 2007 8:42 AM
Subject: [Rails] Re: Weird bug with date_select
To: “Ruby on Rails: Talk” [email protected]

Hi,
Pls have a look on this link…Will get a slution for your problem.

http://railsmanual.org/class/ActiveRecord::MultiparameterAssignmentErrors

On Dec 3, 3:11 pm, “Adriano M.” [email protected] wrote:

Hey guys… Does someone can give a hand here?

<%= x.date_select(:birth_date, :start_year => 1900) %>


March

http://adriano-marques.blogspot.comhttp://umit.sourceforge.net
[email protected]

“Don’t stay in bed, unless you can make money in bed.” - George Burns


Adriano M. Marques

http://adriano-marques.blogspot.com
http://umit.sourceforge.net
removed_email_[email protected]

“Don’t stay in bed, unless you can make money in bed.” - George Burns

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs