Ruby on Rails Community Forum
create.js.erb with Content Security Policy
0
Javascript
Hello, I'm researching best practices on implementing a Content Security Policy for my 5.2 rails app. I have a few `remote: true` forms that respond with `*.js.erb.` It's my understanding that thes...
computer_smile posted
How do I migrate apartment gem to Heroku correctly?
4
Rails
I've implemented the apartment gem and am able to run it in my local environment. However, when I deployed to Heroku, the site won't load and I get this error in the logs `Apartment::TenantNotFoun...
Vitor Ribas replied
devise_invitable: How to create a guest only after user confirmation by email
3
Gems / Libraries
I'm trying to create members of a team by using devise_invitable. But by looking the video related to devise_invitable, I'm not sure if I can create team members ONLY AFTER user confirmation by ema...
Jacob Montgomery replied
It seems that at.js is broken with trix editor, Anyone know a work around
0
Javascript
Here is a link to an app I built showcaseing the issue,
Any help would be great I opened an issue on at.js's github.
https://trix-at-js.herokuapp.com/
Corey Gibson posted
How to update the card number in billing info?
1
General
I'm trying to update my card number but I can't find the edit button.
Thanks in advance :)
Taeyang Lee replied
Solved
Run/Migrate Older Ruby Application (Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1)
16
Ruby
I am taking over an app that has not been developed for a few years. Currently the app is on Github and I have a local Ruby on Rails install on my Ubuntu 16.04 box which I have a copy of the master...
Neville Smith replied
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
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
Deploy Ruby on Rails app using chef
0
Servers
Has any one done deoplying ruby on rails app using following sources centos 7.5 monogoDB, capastraino, unicorn, nginx, jenkins and chef on digital ocean. I would like to see if any one can help us ...
Mt posted
how do i solve this
1
General
Please anytime i open my linux lite terminal, this is what i get;
***Welcome to Linux Lite 4.2 kenneth
Saturday 08 December 2018, 15:49:04
Memory Usage: 329/1982MB (16.60%)
Disk Usage: 8/458GB (...
Jacob Montgomery replied
uninitialized constant User::shift
3
Rails
I got this error: uninitialized constant User::shift
here's the stack trace
def redirect_based_on_shift_state
if current_user
created_shifts = current_user.shifts.in_state(:created).fi...
Jacob Montgomery replied
ActionCable Production Error - Websocket Handshake 404
0
Rails
Hello all,
I've been trying to figure out this actioncable Websocket error I'm getting on production in an AWS EB environment on an Application Load Balancer. It's a 404 error and also Failed to ...
Benjamin Broestl posted
Got error File to import not found or unreadable: foundation/functions.
1
Rails
I upgraded my rails app ruby version from 2.2.1 to 2.5.1 and some its gems. When I load my rails app I got this error. Below are my gems:
gem 'mysql2', '< 0.5.0'
gem 'rails', '< 5.0.0'
gem '...
Chris Oliver replied
Suggestion for a new episode
2
General
Hi Chris, I would find interesting an episode about the implementation of a digest. I mean these weekly types of e-mail that send platforms like medium or quora in which they send the most interest...
Joe Guerra replied
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
acts-as-taggable-on cause SQL errors when ordered by relation
0
Gems / Libraries
I’m having a weird issue with acts-as-taggable-on when using tagged_with and the any flag.
My model looks something like this:
```
class Document < ApplicationRecord
...
belongs_to :phase, ...
Drew Bragg posted
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
RuntimeError (can't modify frozen String)
5
Rails
got this runtime error on heroku, it had been working fine...
I traced it down to this
```
add_breadcrumb 'category / ' << @title, categories_path
```
in my category controller (I've co...
Alan Reid replied
Chart Size Convert
8
General
Hi
I have a table called Download, the data in this table comes in bytes.
I want to prepare a chart with Chartkick. However, with the following code, the data comes in bytes. I want it to come in ...
Jacob Montgomery replied