
How do I return a scope that I think includes a select?
3
Rails
Hello,
I have a Model called Orgchart and it contains a position. In the users table there is an orgchart_id for each user. I have a select box on a form and I want to fill it with all the posit...
Amie Fudge replied
Solved

impossible to start my project with RoR v 4.2.10
0
Rails
help me to statr my first projet with RoR.
on installation rails v4.2.10 ( *impossible for my to install the last version => v.5.x*)
before create my project with command :
`rails new inspiron -...
kara posted
Solved

How is the Front End of GoRails Built?
3
General
The new site is screaming fast. I notice that there's no page refresh on almost all requests. Is this View? React? Something else? I'm curious to know how this is done.
Chris Oliver replied
Solved

How to prevent access to a group if user isn't a member?
4
Rails
Hi all,
I have user groups setup on my app using the code below...
```
class User < ActiveRecord::Base
has_many :user_groups
has_many :groups, through: :user_groups
end
class Group < A...
Alan Reid replied
Solved

How do I switch from 1 database to 1 database per client?
6
Databases
I have a multi-tenancy app where everything is stored in 1 Postgres database. All models have a account_id, so the data a customer can see is based on his account_id. This works perfect, but due to...
Ary Rabelo replied
Solved

ActiveStorage trix image before record exist.
3
Rails
Hi,
I have a Concept model with description string field.
Concept `has_many_attached :images`, I use them to store images that I dragged into trix wysiwyg.
Everything works great if Concept alrea...
Chris Oliver replied
Solved

Current_account selection
3
General
Hi Guys,
In the app I am building, my users have several accounts (though account_users).
For each account they can create, view, update... articles
I would like to have a global selector at the t...
Stan X replied
Solved

"Controller action should call one model method..." (?)
1
Rails
***Controller action should call one model method other than an initial find or new***
*This inspection warns if a controller action contains more than one model method call, after the initial .fin...
Nelson replied
Solved

Rails changing HTML tag possiton (?)
1
General
Im using AdminLTE 2 to build a small dashboard and everything was working nicely until I started adding links to the controllers on my sidebar.
On first loading the dashboard everything works as e...
Nelson replied
Solved

Is a working version of Stripe Payment Master Course available?
4
General
I have bought this course a few days ago and is still struggling to get it to work.
This course video is good but seems to be quite outdated.
Does anyone have a working copy of the course (especia...
kwiksource replied
Solved

Video transcoding
0
General
Hi there!
Can you add video trancoding episode for production ready, I mean API base
Nilanga posted
Solved

Update Devise Migration File and Run rails db:migrate - Nothing Happens.
2
Gems / Libraries
Hey everyone,
Quick question (I hope). I have an application with Devise's out-of-the-box initial set-up. Later, I realized I wanted to include the Trackable functionality so I included it in my m...
Nick McNeany replied
Solved

BootsrapVue - Not Loading the CSS
0
CSS
Hello community!
Can someone help me with some config?
I tried to add Bootstrap-Vue to my rails/Vue project, but the CSS was not loading.
I created a very simple one, but I can't make it work:
h...
Eduardo Borsa posted
Solved

Non-series episode list?
4
General
Is it possible to see a list of episodes that exist outside of the series categories?
Chris Oliver replied
Solved

Is it viable to use Vue + Rails to make a Progressive Web App (PWA)?
1
Javascript
I need a web + mobile app on PostgreSQL that has offline functionality so I decided on making a PWA.
There seems to be only 2 frameworks for making PWAs: Angular and Vue.
So I decided to use Vue...
jun replied
Solved

How do I create a pivot table that shows sum of like-items from the primary table and be able to filter the pivot table and appends calculation on the chosen dates?
2
Rails
I have a database table (orders table) that is densely populated with order information as it happens from users with their ids, and I want to get the sum of fees based on different currencies, and...
Chris Oliver replied
Solved

Can some explain this line of code
2
Ruby
Hello,
I'm following a RUBY code and writing a small script in php that will accept post request (json) and show values. However, the following line puzzles me - what does params["payload"] is doi...
hkauroberoi replied
Solved

Grant all privileges problem
3
General
Hi,
I´m a total newbie and in the process of learning Ruby on Rails. So far I´ve installed Ruby (version 2.5.1) on my Mac and created a database. Now I want to create a new user to a demo project ...
Jørund Jenssen Berg replied
Solved

Change Layout based on current URL
1
Rails
Hi all,
let's say I wand to build a whitelabel product.
I want to display different layouts (Logos, CSS, ...) based on the current URL the website was accessed by.
E.G.
a123.mywebsite.com should...
Chris Oliver replied
Solved

Check a user is author of post before edit or delete
2
Rails
Hi all,
What is the best way to check a user (current_user) owns a post before edit or delete?
I have a Post model with a has_one relationship to the User model, user_id is set. The logged in use...
Philip Benton replied
Solved