Ruby on Rails Community Forum

How to upload images to Rails API using S3

0
Rails
How can you upload images with ActiveStorage from the API? Backend: API Rails Frontend: Reactjs Github: https://github.com/nicobobb/graphql-rails-blog
Nicolás Bobb posted

New Ruby/Rails site with documentation

3
Rails
Hello, I'm with friends we build first for us and then decided to share with all developers new website with documentation - https://www.apiduck.io There are similar sites, we know, BUT because of...
Ignacio Alonso replied

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

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

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

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

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

Unable to run old ruby n rails project

0
Rails
Hi I am new to ruby n rails. I was working on this old website. This website is hosted on the heroku server. I fixed the code which was required and it didn't install this website on my system yet....
Hemant posted

I was wondering if you ever considered doing a series on salesforce

2
Rails
I see a lot of ROR coders in forums looking for information on how to implement some Ruby or ROR with their salesforce implementations. I was wondering if you ever considered doing a series on t...
Brandon Buteaux replied

CoffeeScript - How to work with coffeescript in ruby on rails?

1
Javascript
I am working with CoffeeScript in Ruby on rails. And I am using http://js2.coffee/ to convert my javascript and jquery into CoffeeScript. We know, Ruby on Rails provides us by default .coffee file...
Chris Oliver replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.