
GoRails: Question And Answer #1 Discussion
1
General
Do you have a rails course from scratch?
Muganda Dizo replied

Separate Asset Pipeline
1
Rails
Im building a webapp that has an admin panel... I separated this by creating a new folder in the controllers 'admin' and also on my views... This way I can have two completely different styles, one...
Nelson replied
Solved

Devise
9
Rails
I watched the Gorails Rails Password Reset 2 part video for password reset. My question is my devise setup only create encrypted_password, and reset_password_token, not password or token columns. C...
paxtonleiny replied

[Vue/Rails] Rich Text Editor - Possible XSS and how to safeguard?
1
General
So I'm working on an app where the Admin dashboard is built on Vue and backend is Rails. There are parts where the Admin can update some Rich Text content, and it will be rendered by Rails. But in ...
Chris Oliver replied

Remove ActiveAdmin automatic link on show view
0
Gems / Libraries
Anyone know how to remove the default link Active Admin creates in the show view for other resources? In the code below, if `discipline` is a resource the user can edit and has an ActiveAdmin page,...
Colleen Schnettler posted

let users edit their own posts
2
General
I currently have it setup to where only the admin can edit posts, but would like if the user can edit their posts but no other posts that were not made by them.
Forum Posts Controller
class Forum...
Chris Oliver replied

Coffeescript Instantiation
2
Javascript
I've got a bunch of images thumbnails in an admin area. Wherever one appears, I'd like to be able to click on it, open up a modal with a form, and let the attributes of the image be edited from tha...
Chris Oliver replied

why destroy action is called two times.
6
Rails
my destroy action
def destroy
@owner = User.find(params[:id])
@owner.destroy
respond_to do |format|
format.html { redirect_to root_path }
format.js {}
end
my index page delete link
...
naveen kumar replied
Solved

Using Pundit and ActiveAdmin
0
Rails
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 posted

How to save a record in a nested form from a namespaced resource?
1
Rails
I have a nested form from a namespaced resource...
#Word.rb
```
class Word < ApplicationRecord
belongs_to :category
has_many :choices
accepts_nested_attributes_for :choices
validate...

view pdf file in web application and save the selected content
0
Rails
In my Ruby on Rails web application, an admin upload the pdf files from back-end, we need to save the pdf files.When it comes to front-end user can view the admin downloaded pdf file and he can sel...
Mahesh posted

Naming conventions for database columns and variable names
1
General
Is there a guide or best case practise to help people on choosing the best database column names (or even for variables?). I am not really looking at syntactical naming conventions such as snake ca...
Amie Fudge replied

solidus
5
General
I am creating my e commerce using solidus. In the admin backend, I pload products but then they are not reflected in the frontend...anyone who has come accross this?
Besperstoont1985 replied

Turboframes not replacing when placed in another partial
2
Rails
I am trying to create a modal or a drawer which allows me to edit a form.
When I place the `turbo_frame_tag` in the same file like so. The form shows up properly when I click the link.
**admin/pe...
HP replied

Why devise helpers are not available in application controller, except authenticate_user! ?
1
Rails
undefined local variable or method `user_signed_in' in application controller
but working fine in application.html.erb
if user_signed_in
layout 'admin_lte_2'
else
layout 'some_other_layout'
en...
Chris Oliver replied

How do I render a partial which contains a json object and iterate over the json object and appends it to where I want it too!! Frustration level 1000
0
General
So here is the Scenario of what I am trying to do
I have a view
```
= link_to admin_page_path(page), class: "edit-#{page.id}" do
.subcategory.btn.btn-xs.btn-info{"da...
PDG+creative posted

A Simpler Build with Broadcasts Refreshes Discussion
0
General
My general rule of thumb is I'll use redirecting back/morphing for very simple or low-frequency pages such as admin pages where there's not a lot of user traffic, but will reach for turbo streams w...

Devise Masquerade + Multitenant with act_as_tenant
1
Ruby
I am running a multitenant app with users and administrators scoped to their own account / domain (act_as_tenant).
My use case is the following : I have a superAdmin model who has access to a supe...

Two applications same database
0
General
Hello fellow programmers,
I have built a first application using devise and postgresql to sign up the admin for the exercise. The first application is for sign up purpose only.
https://github.co...
Asim Mehmood Khan posted

Approach/thoughts for longterm settings outside of the database?
0
Rails
Beginner, playing around with Rails 6.0.
I would like to allow the admin of a Rails site to change the site for all anonymous users who come to it:
Settings like
-how many articles per page whil...
sweedledee posted