Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select_date html_options problem ? #6506

Closed
kzkin opened this issue May 27, 2012 · 2 comments
Closed

select_date html_options problem ? #6506

kzkin opened this issue May 27, 2012 · 2 comments

Comments

@kzkin
Copy link

kzkin commented May 27, 2012

<%= select_date(Date.today, :prefix => :date_departure, :html_options => {:class => "span4"}) %>

The generated HTML does not have the attribute "class", this is a bug?

@nashby
Copy link
Contributor

nashby commented May 27, 2012

Look at params list of this method here http://apidock.com/rails/v3.2.3/ActionView/Helpers/DateHelper/select_date
You should use it like this:

<%= select_date(Date.today, {:prefix => :date_departure}, {:class => "span4"}) %>

and please use google group or StackOverflow for such questions.

@drogus drogus closed this as completed May 27, 2012
@kzkin
Copy link
Author

kzkin commented May 27, 2012

OK, I'm sorry, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants