-
Notifications
You must be signed in to change notification settings - Fork 179
Rails 3.2; Is a config/initializers/calendar_date_select file needed? Am I doing it right? #37
Comments
No initializer is needed. I believe you're looking for I think PS: there's a |
Closing, but I'll reopen if need be. |
Thanks for the help, I'm still having an issue using Unfortunately the app I inherited is a rather large app with a lot of gem dependencies. For now I'll just leave Thanks again for the help! Jeff |
I have the same issue in a old project upgraded to Rails 4.0.0. I need to initialize ActionView::Base.send(:include, CalendarDateSelect::FormHelpers) for calendar_date_select_tag and calendar_date_select to work. |
Bump |
have a look on this fork for Rails 4 https://github.com/bdcheung/calendar_date_select |
Hi,
I'm in the process of upgrading an app from Rails 2.3 to 3.2. In order to get the plugin working correctly I had to do the following:
Add calendar date select to the Gemfile:
Add the following to my layout/application (for silver style):
Add the css and js assets to the asset pipeline in config/application.rb:
Create the file config/initializers/calendar_date_select.rb with the following:
Without the config/initializer/calendar_date_select.rb file, the calendar_date_select helper method is no longer available in the views:
So my question is... is a config/initializer file required? Is there a better way to get the helpers loaded in the ActionView context?
Thanks,
Jeff
The text was updated successfully, but these errors were encountered: