question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Active Admin implementation

See original GitHub issue

I’m not sure if this an issue with integration with Active Admin, Formtasitc (which is used by AA by default for forms) or with Rails 4, but I can’t seem to get around it.

form do |f|
f.inputs "Town" do
  f.input :town
  f.input :name
  f.filepicker_field :filepicker_url
end
f.actions
end

I get the following error on the page where I submit the form:

Showing /Users/***/.rvm/gems/ruby-2.0.0-p0@Guides/bundler/gems/active_admin-72a9c30cef47/app/views/active_admin/resource/edit.html.arb where line #1 raised:

Set config.filepicker_rails.api_key

Extracted source (around line #1):
1:  insert_tag renderer_for(:edit)

I have followed the instructions from the github docs and have my API key in config/application.rb. Has anyone else run into this error? I use Filepicker in another php app and love it, so I’d rather not have to use Paperclip for my Rails apps.

Here’s a gist to the full trace Gist

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
geoffreycommented, Mar 19, 2018

@nileshtrivedi how did you ended up adding the js include tags

<%= filestack_js_include_tag %>
<%= filestack_js_init_tag %> 

from https://github.com/filestack/filestack-rails in activeadmin ?

0reactions
stevegrossicommented, Aug 3, 2021

I’d love to know if you figured this out @geoffrey. I’m having the same difficulty: no access to ActiveAdmin’s layout, and adding

<%= filestack_js_include_tag %>
<%= filestack_js_init_tag %> 

to my _form.html.erb raises undefined local variable or method 'filestack_js_include_tag'

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · activeadmin/activeadmin - GitHub
The administration framework for Ruby on Rails applications. - Issues · activeadmin/activeadmin.
Read more >
Active Admin | The administration framework for Ruby on Rails
Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple...
Read more >
General Configuration - Active Admin | The administration
When registering resources in Active Admin, they are loaded into a namespace. The default namespace is “admin”. # app/admin/posts.rb ActiveAdmin.register ...
Read more >
Working with Resources - Active Admin
Working with Resources · Create a Resource · Setting up Strong Parameters · Disabling Actions on a Resource · Renaming Action Items ·...
Read more >
Installation - Active Admin
Active Admin is a Ruby Gem. ... More accurately, it's a Rails Engine that can be injected into your existing Ruby on Rails...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found