If jquery-ui-rails is on your gemset, activescaffold will load, no need to add
to
javascripts and stylesheets, only jquery.ui parts not used by ActiveScaffold.
Check this on console:
Jquery.const_defined?('Ui')
ActiveScaffold::Bridges::DatePicker.jquery_ui_included?
ActiveScaffold::Bridges::DatePicker.install?
ActiveScaffold.exclude_bridges.exclude? :date_picker
El Jueves, 31 de julio de 2014 15:07:48 Tin Vo escribió:
> jquery-rails is there by default; without it, AS wouldn't work; normal
> operation of AS works; however, I couldn't get the date_picker to work.
>
>
>
> I have tried using the jquery-ui-rails gem and added the assets for
> javascript and stylesheets (ie: jquery-ui.date_picker), but it did not work
> either.
>
>
>
>
>
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Sergio Cambra
> Sent: Thursday, July 31, 2014 3:33 AM
> To: [email protected]
> Subject: Re: Need help with getting date_picker to work in Rails 4.1.4 +
> ActiveScaffold 3.4.1
>
>
>
> Do you have jquery-rails and jquery-ui-rails gems in your Gemfile?
>
> El Miércoles, 30 de julio de 2014 09:44:02 Tin Vo escribió:
> > I've done the following:
> >
> >
> >
> >
> >
> >
> >
> > 1. created a brand new Rails 4.1.4 application.
> >
> >
> >
> > 2. added gem 'actie_scaffold' in the Gemfile.
> >
> >
> >
> > 3. added the assets for JS and CSS.
> >
> >
> >
> > 4. create a model with "rails g active_scaffold User name:string
> >
> > birthday:date"
> >
> >
> >
> > 5. rake db:migrate
> >
> >
> >
> > 6. rails s
> >
> >
> >
> > 7. open localhost:3000/users
> >
> >
> >
> >
> >
> >
> >
> > Everything works but when creating/editing a new user, the the birthday
> >
> > field does not have date_picker.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > From: [email protected]
> >
> > [mailto:[email protected]] On Behalf Of Sergio Cambra
> >
> > Sent: Wednesday, July 30, 2014 3:16 AM
> >
> > To: [email protected]
> >
> > Subject: Re: Need help with getting date_picker to work in Rails 4.1.4 +
> >
> > ActiveScaffold 3.4.1
> >
> > El Miércoles, 30 de julio de 2014 00:49:34 Tin Vo escribió:
> > > I can't seem to get the date_picker to work. Any help is appreciated.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thanks.
> >
> > What steps have you done?
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.