Comments (12)
Replace ActiveAdmin.routes(self)
with below line in routes.rb
ActiveAdmin.routes(self) rescue ActiveAdmin::DatabaseHitDuringLoad
This fixes the issue.
from acts_as_relation.
I ended up converting the scope
to a class method as suggested in #71 (comment), but only after trying to figure out what using a proc
means for custom filters. @estelleqiu and @zpieslak are you referring to setting the collection
option as in the following (see docs):
filter :author, collection: proc { Author.all }
from acts_as_relation.
I am getting the same error... and I although I have added the acts-as but it still cannot resolve the problem
from acts_as_relation.
@BattleBrisket comment on #59 is complete
from acts_as_relation.
I had the same issue on the newest master branch (activeadmin/activeadmin/commit/930d34cd224272687613dcf1db4cf5b1347f1098) of active_admin. The thing that caused it, was custom 'filter' options which were not wrapped in proc objects.
from acts_as_relation.
Filter part can be changed like this to avoid getting this kind of errors.
ActiveAdmin.register Table do
begin
filter: id
filter: name
rescue
p "msg"
end
end
from acts_as_relation.
I was also getting same error on rake db:migrate. I just commented that line and rake db:migrate runs perfectly and comment it after
from acts_as_relation.
Got the same error.
helped moving in models form scope :foo -> {bar}
to def self.foo bar;end
for table loading for avoid error
from acts_as_relation.
@r-a-o It works for me also. Thanks
from acts_as_relation.
I find proc{}
is work for me.
from acts_as_relation.
rescue ActiveAdmin::DatabaseHitDuringLoad
It worked for me too!
from acts_as_relation.
Thank you!
from acts_as_relation.
Related Issues (20)
- Extending Devise's User to Roles using acts_as_relation HOT 1
- Cannot instantiate an subclass HOT 3
- Rails 3.2 - .specific is not working? HOT 1
- PG::UndefinedColumn, ActiveRecord::StatementInvalid HOT 1
- Cannot use created_at or any timestamp columns to query: ambiguous column name HOT 2
- Nested form splitting child records across multiple rows HOT 2
- Circular reference issue when running migration HOT 3
- Association field name error (assuming default convension names) HOT 1
- Name of the has_one assiocation HOT 1
- Pen.where(name: "...") doesn't work HOT 1
- Dependent Destroy does not work ? HOT 1
- Including a "whole" object in json
- Make record duplication possible
- Saving the parent object doesnt save changes to the child HOT 1
- Move version.rb into acts_as_relation directory HOT 1
- Infinite loop unexistant method/`respond_to?` on `.specific` HOT 1
- PG::Error: ERROR: relation "users" does not exist
- SQL request problem
- Gem dependencies incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acts_as_relation.