kristianmandrup / ui_datepicker-rails3

jQuery UI datepicker integration for Formtastic, Simple Form and Active Admin
MIT License
50 stars 15 forks source link

Rails 3.2.1 #4

Open stclara opened 12 years ago

stclara commented 12 years ago

Where should be placed or executed this line to enable the simple_form to rails 3.2.1?

[]'s

Stclara

kristianmandrup commented 12 years ago

Try adding it in an initializer file ;)

stclara commented 12 years ago

Sorry, friend, but did not understand. I have a directory my_app / config / initialazers. Should I create a file my_app/config/initialazers/ui_datepicker-rails3.rb or should I put this line in my_app / config / initialazers / simple_form.rb?

[]'s

Stclara

kristianmandrup commented 12 years ago

either way is fine.

rbinsztock commented 12 years ago

it's not working inside the simple_form.rb i have try to add it in it and i got this error : No input found for date_time_picker

kristianmandrup commented 12 years ago

That error means that it hasn't been registered with simple_form somehow. Please look into the code and simpleform and see what should be done to make it seamlessly integrate. I also need some integration specs for the various form builders. Here simpleform should also provide an idea for how to write such specs I imagine. Please fork it and spend an hour or two and I'm sure you will advance it, then send me a pull request. Thanks. I've got no time myself unfortunately.

Sylvain commented 12 years ago

In the doc, it's written date_time_picker for simple_form but it's name is ui_date_time_picker. I think that it is the source of the confusion. It would be great to update the doc accordingly ;)