activeadmin-plugins / active_admin_datetimepicker

:calendar: active_admin_datetimepicker gem
MIT License
73 stars 47 forks source link

not work #18

Closed LyriD closed 8 years ago

LyriD commented 8 years ago

rails 423, activeadmin 1.0.0.pre1

my admin/entity.rb


Entity.column_names.each do |column_name|
    filter column_name unless column_name == :updated_at
end

filter :updated_at, as: :date_time_range

initializers/active_admin.rb include:


ActiveAdminDatetimepicker::Base.default_datetime_picker_options = {
    defaultDate: proc { Time.current.strftime("%Y-%m-%d 00:00") }
}
# This if for backend(Ruby)
ActiveAdminDatetimepicker::Base.format = "%Y-%m-%d %H:%M"

and

config.register_javascript 'active_admin_datetimepicker.js'

active_admin.css.scss contain:

@import "active_admin/mixins";
@import "active_admin/base";
@import "active_admin_datetimepicker";

i have empty fields in filters block. datetimepicker don't show. (web inspector is clean, no errors any)

Very very big thanks for reply!!

workgena commented 8 years ago

I reproduced your case. But it works fine. Perhaps you use old version.

Try Gemfile:

gem 'active_admin_datetimepicker', '0.2.0'
LyriD commented 8 years ago

yes, i have 020 version. sorry, but still not working 4 me. all logs are pretty fine. magic О_о

Fivell commented 8 years ago

@LyriD , can you give sample application that reproduces bug

Fivell commented 8 years ago

@LyriD , try version 0.3.0, if doesn't help please reopen it with more information