Redis on Digital Ocean vs. AWS/ElastiCache

2
Servers
I'm running a Rails app on AWS Elastic Beanstalk / EC2 which also uses ElastiCache / Redis to run background jobs with Sidekiq. If I'm not mistaken, ElastiCache is a completely separate service tha...
Craig DesBrisay replied
Solved

How to do convert this ImageMagick command and parameters into a Ruby code to be used with Carrierwave

1
Rails
Basically I am asking how to do this: `convert input.png -bordercolor white -border 1 -set option:distort:viewport "%[fx:max(w,h)]x%[fx:max(w,h)]-%[fx:max((h-w)/2,0)]-%[fx:max((w-h)/2,0)]" -virtua...
W.M. replied
Solved

Let's Encrypt Error on Hatch

2
General
I keep getting this error when trying to add Let's Encrypt using Hatch. Im not sure how to debug it. Any thoughts? ``` Uploaded /etc/nginx/snippets/letsencrypt.conf Uploaded /etc/nginx/snippets...
Chris Oliver replied
Solved

How to attach "users" to a tenant/tenants with Rails multi-tenancy/apartment

11
Rails
Hey guys, Have been watching some great videos on multi-tenancy with Rails but one thing I can't quite get my head around. If a `User` remains global, what is the best strategy for giving them ac...
Tabish Iqbal replied
Solved

Stripe Subscriptions: Duplicate Customers

14
Rails
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 all ...
Stephen Swann replied
Solved

assign_attributes not working

2
Rails
I just signed up for Payments with Stripe and Rails Master Class and am loving it...can't walk away from it; learning a ton! Having an issue though and was hoping someone could lend a hand. I am f...
Chris Oliver replied
Solved

Disaster recover plan?!

9
Servers
Hello, So I'm deploying my first Rails app built for a customer – 🎉 – to production in couple of days – I'm using Hatch – and I'm not sure what kind of setup/plan I should have for "disater recove...
Gary Traffanstedt replied
Solved

How can I use Rails Each Array and In-page search to show/hide div content

2
Rails
I'm trying to set up a simple search bar to show/hide content in my rails app. Specifically, trying to allow someone to search for a specific user via username in my chatroom which are being shown ...
Omar Khedr replied
Solved

Do I need rails-ujs and jquery_ujs?

4
Javascript
I'm bulding a rails 5.1.x app so no jQuery, but I'm usining Bootstrap so I added it in. I was adding in `//= require jquery` and `//= require jquery_ujs`, then noticed that rails 5.1 now ships wit...
Robert Motion replied
Solved

Link to a method in my model

1
Rails
Hi I have a method called Search(search) in my model which is called from my controller. This works fine when I enter a search term in an input box in my view. What I now want to do is create a ...
Simon P replied
Solved

Hatch / Updates

1
Servers
Are you going to manage the updates of the core components (vs gems) like Postgres / Redis etc ... ?
Chris Oliver replied
Solved

Rails5 + JQuery progress bar not functioning

1
Javascript
Implementing a JQuery progress bar so when you scroll down it should show a green bar across the top. When I start scrolling the progress bar does not appear. I use inspect element on the bar div c...
Neil Patel replied
Solved

Using will_paginate and .limit(x) together.

6
Rails
Hi It appears that will_paginate and .limit(x) will not work together. So this didn't work: (I am trying to get 150 most recent records and paginate them) @articles = Article.where.not(site_i...
Simon P replied
Solved

Are there any up to date tutorials for jquery-sortable?

8
Gems / Libraries
I've built a todo list that consists of lists and tasks. I am looking to use sortable to allow someone to move items around and between lists. Can anyone recommend any resources on how to do this? ...
Ohad Dahan replied
Solved

How do I prepopulate table data for a new registered user?

2
Rails
I'm wondering how would one go about prepopulating certain data table for a new user? Let's say I have a table with posts and a table with likes, and when new a user registers I'd like to make it s...
Alex R replied
Solved

[Hatch Deployment] - Cannot bundle commonmarker due to cmake

2
Gems / Libraries
Im using commonmarker for the HTML::Pipeline::MarkdownFilter. And when trying to deploy my app, I get this exception: ``` Gem::Ext::BuildError: ERROR: Failed to build gem native extension. curre...
Lauro replied
Solved

PDF Receipts not working

4
Rails
I just finished working through the pdf receipts video but can't get it to work. I have the webhook working and all charges are displayed properly, but the link to the pdf 404's. Can you see where...
Adrian DeGus replied
Solved

how do i display search results

1
Rails
Following on from my prev question regarding implementing search using the geocoder gem [https://gorails.com/forum/how-do-i-implement-search-by-postcode-zipcode-using-the-geocoder-gem] I have imp...
Neil Patel replied
Solved

Advice on implementing a template system in Rails

5
Rails
I am currently building a Rails app that allows users to create and manage projects. Within these projects are different groups and tasks which are of course associated models belonging to the proj...
inopinatus replied
Solved

how do i implement search by postcode/zipcode using the Geocoder Gem

2
Rails
Building a small rails app that is able to search by postcode(zipcode) and radius, so it responds with contractors that are within that radius/postcode **schema.rb** create_table "locations", forc...
Neil Patel replied
Solved

Learning Ruby on Rails? Join our newsletter.

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