Ruby on Rails Community Forum

Doorkeeper and Authorization Code Flow

0
Gems / Libraries
Hi! I'm learning rails building an CRUD app with authorization. I want to autorizate http requests. I can't generate the authoriation code, when send the url with client_id and callback url, the p...
brbernardo90 posted

Preventing XSS in a Rails app, accepted architecture?

0
Rails
I've read and understand the great ways Rails sanitizes data when going from server to client, but I have a question that I would love to get some guidance/input on. Recently it was discovered the...
Mark Kadlec posted

Why have the three dots syntax?

1
Javascript
So basically I have a doubt in[ java developement](https://crbtech.in/java-training/top-java-developer-training-and-placement-in-pune) which i don’t get what’s the difference between these two li...
Chris Oliver replied

Installation Error with Ruby 2.6.1 on Ubuntu 18.4.1 LTS Server

1
Servers
I encountered following error trying to install Ruby 2.6.1 on a VMWare driven Ubuntu 18.4.1 Server with **rbenv**: ``` Installing ruby-2.6.1... BUILD FAILED (Ubuntu 18.04 using ruby-build 2019013...
Damian Nelwep replied

I am getting this "Rails ExecJS::ProgramError in Pages#home"

0
Rails
Hello, I am getting this "Rails ExecJS::ProgramError in Pages#home" error in browser, when i go to the root path which is pages#home. I am using windows 10. untill i dont add the bootstrap it work...
dev posted

unable install the ruby 2.2.3 and rails 4.2.6

0
General
unable install the ruby 2.2.3 and rails 4.2.6 in ubuntu16.04,Please provide if have any doc I am getting bundler issue
nagendra posted

Spree - What is the secret key of spree? Ask Question

2
Gems / Libraries
I am working on Ruby on Rails project, and I have already added the devise authentication, and now I have added the spree in my project by following this Github/spree I want to know that is the...
theshashiverma replied

How to use LIKE to query a jsonb field

0
Rails
Hi guys, am really stuck with this, I have a jonb field called occurrences, and one of my records has this on it : ``` [{"occurs_on"=>"2019-02-04 23:00:00 UTC", "status"=>"none"}, {"occurs_...
michel med posted

How to upload google doc file or drive file in drive collection using google drive ruby gem?

0
Ruby
In my app, I want to upload google doc file or google drive file in my drive collection using google drive ruby gem. I saw function like upload_from_file(path) but it works when I'm using local fil...
TOSSIM Brice posted

Chris, I was wondering what your thoughts were on ROR and how you think the future for it will be.

0
Rails
I deal with 5-7 languages every week (out of necessity not desire) and was wondering how you felt about the future long-term success of ROR would play out. My take is that the apps that I build f...
Brandon Buteaux posted

How to debounce ActiveJobs?

1
Rails
How can I debounce jobs in ActiveJob? Why I need this: Events in my Rails app can trigger the same job independently from multiple places. But I want this job to run only once – only running the l...
Chris Oliver replied

Has anyone used VueJS with Devise?

0
Gems / Libraries
I am trying to convert an existing site which used .erb to an SPA (VueJS). I have followed http://www.guillaume-barillot.com/2017/12/02/how-to-organize-your-vue-files-in-a-rails-5-1-project-using-...
kwiksource posted

Pagy Frontend Extra MAterialize

1
Rails
Hi Chris, I followed your toturial of pagination with Pagy gem, all is fine until when I add the extra frontend materialize. I did this: 1. Create a pagy.rb file into config/initializers folder 2...
Domizio Demichelis replied

Would love some feedback/thoughts!

0
Rails
Hey everyone, I just finished this article on Rails advantages in 2019! I would love to know your thoughts and comments! https://snipcart.com/blog/rails-advantages Thanks!
Nathan Thompson posted

Getting slowness on passengers in our prod env

0
Servers
Getting slowness on passenger servers in our prod env when large number of web services are being hit from another application server . At the time of load on passenger there is no load on our DBse...
Atul Kumar posted

Gem for Master-slave Replication

0
Databases
Hi, I'm trying to make master-slave replication(One master(write/read) and one slave(read only)) for my database(mysql 8 / rails 4.2). I researched whole day but I'm still considering which gem is ...
Sean posted

Would love some feedback/thoughts!

0
Rails
Hey everyone, I recently worked with a dev on our team to write an article on Ruby on Rails and I would love thoughts/feedback since I have another article coming out this week (which is more over...
Nathan Thompson posted

How do I use includes to return all columns of associated table?

1
Rails
I hope someone here can help me. There's a lot to ActiveRecord I'm yet to understand and I'm a little lost at the moment. I have three models. `Issue`, `Language`, `Labels`. An issue has a langua...
Oliver replied

I am looking to find a way to work through a modern image upload work flow with active storage

1
General
Things I am attempting to achive, 1. Attach File with a js libary such as Dropzone.js 2. Vaildate file size and type 3. Crop image using libray such as Cropper.js to achive correct image aspect ra...
Carl Tanner replied

Using a Custom Constraint to Redirect

0
Rails
How would you set up a custom constraint to redirect in the absence of an ENV. eg: If a certain set of ENVs are missing, it would redirect you to an error page using a custom route. If the envs ar...
Luis Mejia posted

Learning Ruby on Rails? Join our newsletter.

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