ruby on rails - Active Admin Filepicker.io error -
i have followed instructions here: https://github.com/ink/filepicker-rails
i have config.filepicker_rails.api_key = "myapikey"
in config/application.rb , filepicker.io script being called via <%= filepicker_js_include_tag %>
in application layout.
i have in admin/geography.rb file:
form |f| f.inputs "town" f.input :town f.input :name f.filepicker_field :filepicker_url end f.actions end
the error getting on admin page is:
runtimeerror in admin::geographies#new showing /users/user/.rvm/gems/ruby-2.0.0-p0@guides/bundler/gems/active_admin-72a9c30cef47/app/views/active_admin/resource/new.html.arb line #1 raised: set config.filepicker_rails.api_key extracted source (around line #1): 1: insert_tag renderer_for(:edit)
has experienced or have solution? have tried moving initializers/active_admin.rb file no luck , i'm not sure else remedy. there doesn't seem info on ror filepicker.io implementation outside of github doc.
the version of filepicker-rails on rubygems doesn't support rails4 @ moment (working on updating it). the version on github should work please grab there.
(for more information, see: https://github.com/ink/filepicker-rails/issues/55)
Comments
Post a Comment