Skip to main content
Affiliate Program Gems
General • Asked by Brent C
I would love a tutorial on creating an affiliate program... Anyone have any gems they can recommend?
8
posts

Good public national holidays api?
General • Asked by Andrei Crudu
I am working on a project and I need an api from which to import all the national holidays for a certain country and even for specific regions in that country. So for example I could import all...
6
posts

How to Upload Files Directly To S3 Using Paperclip And Dropzone.js
Rails • Asked by James Derryl
[How to Upload Files Directly To S3 Using Paperclip And Dropzone.js](https://www.railscarma.com/blog/technical-articles/upload-files-directly-s3-using-paperclip-dropzone-js/)
6
posts

Deploy Ubuntu 18.04 Bionic Beaver Discussion
General • Asked by Chris Oliver
Thanks for this article, Chris! I'm struggling to get past the step of installing NGINX with Passenger. The command sudo apt-get install -y nginx-extras passenger...results in a message about sever...
17
posts

How can I improve query time in SQL ? (PostgreSQL)
Databases • Asked by Boris Bresciani
Hi, I have 4 models: ``` class Match < ApplicationRecord belongs_to :tournament scope :next, -> { where('date > ?', Time.zone.now) } end ``` ``` class Tournament < Ap...
1
post

Expanding beyond a basic Rails CRUD site.
General • Asked by Simon Cooper
So I've got a fairly basic CRUD style rails app, which has a list of `Gins`, `Distilleries` and and blog `Posts`. I'd like to expand it quite significantly in the following ways: * **Add au...
4
posts

Stripe Subscriptions: Duplicate Customers
Rails Solved • Asked by Nick McNeany
Hey Eeveryone, I'm creating a subscription site using Stripe v3. For the most part everything is working fine, but I noticed in my Stripe Customer dashboard there are duplicate customers (for al...
15
posts



Using VueJS for Nested Forms in Rails: Part 2 Discussion
General • Asked by Chris Oliver
Why did not you use "Vue.http.headers.common['X-CSRF-Token'] = document.querySelector('meta[name="csrf-token"]').getAttribute('content')" ?
8
posts

How to Migrate from Paperclip to Rails ActiveStorage Discussion
General • Asked by Chris Oliver
This should return the path to file in this format: /users/avatar/xxx/xx/original/filenameinstance.send(attachment).pathAlso, in my case i had to use something like:file_path = k.send(value).path.s...
12
posts

Spree - What is the secret key of spree? Ask Question
Gems / Libraries • Asked by theshashiverma
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 ...
3
posts

Exporting Records To CSV Discussion
General • Asked by Chris Oliver
Is there some magic happening when you call @users.to_csv ?? As I understand @users is an ActiveRecord::Relation, how is the method 'to_csv' sended to the User class ??
56
posts

TinyTds::Error (closed connection): when using Apache/Passenger
Databases • Asked by William Jones
When I start my application using Puma on port 3000 everything works as expected (no error). When I try to access the application after starting Apache, using the default port 80, I get the error "...
5
posts

unable install the ruby 2.2.3 and rails 4.2.6
General • Asked by nagendra
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
1
post

Group Chat with ActionCable: Part 7 Discussion
General • Asked by Chris Oliver
Hi! response for the new userundefined method `last_read_at' for nil:NilClass for Chatrooms#show how to solve?
26
posts

Setup Windows 10 Discussion
General • Asked by Chris Oliver
Hi,I got all the way through this so thanks for the walk through! I run "rails server -b 0.0.0.0" and the server boots fine but when I go to localhost:3000 in the browser, the browser icon spins bu...
159
posts

How to upload google doc file or drive file in drive collection using google drive ruby gem?
Ruby • Asked by TOSSIM Brice
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...
1
post

How to use LIKE to query a jsonb field
Rails • Asked by michel med
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"}, {"occ...
1
post

Pagy Frontend Extra MAterialize
Rails • Asked by Víctor Soto
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 fold...
2
posts

Subscribe to the newsletter

Join 20,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.