Using Pundit and ActiveAdmin
Hello, I'm using pundit with active admin and getting this error message Pundit::NotDefinedError at /admin unable to find scope `Admin::AdminUserPolicy::Scope` for `[:admin, AdminUser(id: integer,...
Maksk89 postedHello, I'm using pundit with active admin and getting this error message Pundit::NotDefinedError at /admin unable to find scope `Admin::AdminUserPolicy::Scope` for `[:admin, AdminUser(id: integer,...
Maksk89 postedDid you find a solution to this, I am having the same issue
Jamie Crone replied • SolvedI am new to ROR & Postgresql database. I am trying to create a ROR API Application with Using Existing Database for my development. i want to know how to achieve the same. I referred many sites...
balaganesh postedHello folks, I’m trying to do a search query through an association. Here’s what I have. I have Property model which has_many :characteristics, as: characteristicable on one side. On the other si...
Owen postedI have a rails 5.2 app, which run in a good way. After I followed the lesson about real-time group chat and used web pack, all the delete methods in my app are not working now. What are the possibl...
yy00809 postedIt worked. Thank you!
Fatumata Jalloh replied • SolvedHi, I am currently testing and setting up an email service system. **I just need to be able to receive emails , but no need to send email.** 1. my dns `mail.xxx.com` is ping successful, it can g...
Sylor-huang postedHello, the server that I hired made an update from Ubuntu 26-04 to 20.04 and since then I can no longer upload my project, I get the following errors: 2021/04/17 03:33:26 [error] 69263#69263: *5 "...
Miguel postedHello, I am building a app with comments. I want to implement the feature where you don't show the avatar as long as the previous comment is by the same user. Like how Skype does it. How can I achi...
Suleiman Nassor postedHey! I guess you'll need to provide some code, in order for us to be able to help you :) Things to look out for: - has your "update"-button the correct path/link specified? - does your route call...
karatepicke repliedThis was the quick fix, for if anyone views this post in the future: Add this line in your application ```html #in app/views/layouts/application.html.erb ... ... ```
cratag replied • SolvedHello Umar, did you finally manage your issue ?
gclement replied • SolvedActionView::Template::Error (uninitialized constant ActiveStorage::AttachmentDashboard): 17: 18: <% if field.linkable? %> 19: <%= link_to( 20: field.display_associat...
chedi postedHey Suleiman, something along those lines should work: # routes.rb ``` get "/:user_account_number/projects/:project_id", to: "projects#show" # pay attention to the colons (:) within the url here....
karatepicke replied • SolvedHi all, im new to Ruby on Rails and new to GoRails. I try to connect 3 tables. My Models: **Course.rb:** class Course < ApplicationRecord has_many :chapters has_many :lessons, through...
Corlett Nils postedI am testing a model class method from 'rails console' called "progress" which is inside class 'Okr' as 'Okr.progess'. But getting NoMethodError (undefined method `progress' for Okr (call 'Okr.conn...
deepkhajanchi postedHello, I’ve been using the Freshdesk widget on my production app for a while now. I want to be able to pre-fill a user's email address as well as automatically set the ticket priority for my paid ...
Nadia postedHi all, I'm currently working on re-building a search feature, we have a basic search and an advanced search, I have a basic text search form working for the name, however, I can't seem to get an ...
Ben John Bagley postedI am aware of these guides: - [https://github.com/heartcombo/devise/wiki/How-To:-[Redirect-back-to-current-page-after-sign-in,-sign-out,-sign-up,-update]](https://github.com/heartcombo/devise/wiki...
Leon Entrup postedFound the issue. The options passed should be an empty object. Nil will return an error so finally: ```html <%= form.collection_select :product_type, Product.product_types.keys, :to_s, :titlecas...
Nicolás Kruk replied • Solved