
Page Specific Javascript
4
Javascript
I just came across this article that talks about a gem that allows you to implement cleanly space specific javascript.
http://brandonhilkert.com/blog/page-specific-javascript-in-rails/
However, i...
Greg Cosgrove replied

Error Handling in Ruby 4+
8
Rails
Does anyone have any thoughts or why this might be a bad practice?
I am using the following code as the last route within my routes.rb
get "*path", to: redirect('/')
It seems to handle very well...
Jeff Wilson replied

Could I deploy two different apps on the same server?
6
Servers
Hello everyone,
Yesterday, I started using HatchBox to deploy my Rails applications and it is working just fine.
I was thinking about deploying 2 Rails applications on the same Vultr | 1GB RAM | ...
Solved

Rails 6 autocomplete with add new
2
Rails
In the past (back in rails 4) I used select2 or selectize to give me the ability to make a text field autocomplete as typed and have the option to create a new item, so basically tagging but only a...

Database structure advice
1
Databases
Hi all,
I need advice on what to do with an existing table on an existing app.
Right now the table is used to store details about a property and its closing costs. Normally there are always a h...
Chris Oliver replied
Solved

How should I go about setting up a staging environment on Hatchbox w/ DigitalOcean?
1
Servers
So I've set myself up with Hatchbox on DigitalOcean. I don't think I want to deploy seperate environments on the same server. But if I create an entirely seperate cluster I am afraid of racking up ...
Chris Oliver replied

How do I build conditional form fields?
4
General
I'm trying to build a form which contains categories and subcategories. The desired effect is to display the subcategories field or the relevant subcategories depending on the category that has bee...
Charles Fonlupt replied

How to send checkbox ids to modal pop up using stimulus js?
0
Rails
I have got list of items with checkbox on the left side of each row having id of that particular row. How can I send the ids of items to the modal
using stimulus js so that I can display brief deta...
Animesh Dash posted

Are "nonclass singleton methods as rare as class methods are common"
0
General
In his 2011 book "Eloquent Ruby", Russ Olsen makes the states that
"nonclass singleton methods [he refers to instance methods] are as rare as class methods are common."
He makes the point that th...
TrevorGage posted

HTML font-size: 62.5% is way larger than it should be
1
CSS
Hello, I'm running into a problem where I want to use rems as a unit, so I set the html font-size to 62.5%, which I've seen as a common practice, which should give me 1rem = 10px (because the defau...

Senior Ruby Software Engineer - Backend (Fully 100% Remote work from anywhere)
0
Ruby
FairMoney is building the leading mobile bank for emerging markets. FairMoney is unique thanks to its international exposure (with offices on 3 continents) and its impact-driven mission: we bring f...
Emmanuel Sodeinde posted

How do I constantly monitor a Rails database & then action an alert?
0
Tips
How do I constantly monitor a Rails database & then action an alert? eg. I want the user to save an alert in the backend. The backend would check an external API and compare the price in the DB...
Christopher Lam posted

What's the best way to implement Web Push Notification with Rails API?
3
Rails
I have been looking on how I'm going to add a feature of Web Push Notification on our School Project currently and found some services like Twilio, Pushbots and OneSignal. Though even trying those ...
Chris Oliver replied
Solved

HTML font-size: 62.5% is way larger than it should be
0
General
Hello, I'm running into a problem where I want to use rems as a unit, so I set the html font-size to 62.5%, which I've seen as a common practice, which should give me 1rem = 10px (because the defau...
meklwin posted

HTML font-size: 62.5% is way larger than it should be
1
General
Hello, I'm running into a problem where I want to use rems as a unit, so I set the html font-size to 62.5%, which I've seen as a common practice, which should give me 1rem = 10px (because the defau...
kelwein marteina replied

HTML font-size: 62.5% is way larger than it should be
0
General
Hello, I'm running into a problem where I want to use rems as a unit, so I set the html font-size to 62.5%, which I've seen as a common practice, which should give me 1rem = 10px (because the defau...
kelein marwin posted

Grandfathering
5
General
I am experimenting with pricing. Any good tips or procedures to try out grandfathering in old users and apply new pricing to new users?
Daniel Weaver replied

Rails csv import with associations
8
Rails
I am building a rails application that associates posts with many different categories. For example, I have a Post and need to be able to assign it to the categories Sports, News and Science throug...
Chris Oliver replied
Solved

Cannot create Rails App - gem issues "Ignoring nokogiri" and other gems
5
Rails
When I try to create a new Rails App it fails. I am on Big Sur 11.3, Ruby 2.7.2, and when type rails-v shows 6.0.3.4 but also ignoring quite a few gems including nokogiri and 6-7 others. I have tri...
Ryan Mindigo replied

Stimulus JS Framework Introduction Discussion
27
General
I'm literally figuring out StimulusJS right now on an app, and I was hoping you would do a screencast on it soon and save me some time! Awesome timing :)
joelGarcia93 replied