pluck_all | efficient way to get data | Object-Relational Mapping library
kandi X-RAY | pluck_all Summary
kandi X-RAY | pluck_all Summary
A more efficient way to get data from database. Like #pluck method but return array of hashes instead.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pluck_all
pluck_all Key Features
pluck_all Examples and Code Snippets
Community Discussions
Trending Discussions on pluck_all
QUESTION
I have a registration app which registers a Participant
, which then can be placed in a Group
with other participants. I am using ActiveAdmin to assign them to groups.
When I try to create a new group using active admin I get the following error:
"ActiveRecord::RecordNotFound in Admin::GroupsController#create" with this additional information: "Couldn't find all Participants with 'id': (0, 0) (found 0 results, but was looking for 2)"
I thought that perhaps it was because I had not generated a controller for my model yet. However, when ran a generation for the controller I received this error:
...ANSWER
Answered 2019-Feb-01 at 02:38The issue isn't related to GroupsController. ActiveAdmin resource has nothing to do with it. The problem is in input for participant_ids. If you check generated html, you can see blank value in options. Should be:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pluck_all
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page