Support start_date/end_date and start_time/end_time in datetime fields #13

Closed
josevalim opened this Issue May 25, 2009 · 5 comments

Projects

None yet

3 participants

@josevalim

No description provided.

@josevalim

I don't remember why I created this ticket anymore. :D
Anyway, if you want to limit the date, i.e., the year, just supply :start_year, :end_year.

@justinfrench
Owner

This was the original discussion on the group:
http://groups.google.com/group/formtastic/browse_thread/thread/37fa9af263283cf1/5225e6fce69ed10b?#5225e6fce69ed10b

Re-opening until I have time to play with this.

@justinfrench
Owner

Ok, I think the arg names got mixed up. This works fine:

f.input :created_at, :as => :date, :start_year => Time.now.year - 100, :end_year => Time.now.year + 100

Closing this off.

@MaicolBen

@justinfrench This continue working? Because I tried with date_select and date_picker and the start_year and end_year params don't seem to work.

@justinfrench
Owner

@MaicolBen can you open a new issue with as much detail as possible about what's happening (or not happening) for you?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment