Environment Variables Discussion

5
General
I always found Env Variables very confusing, this does help. However still not a 100% sure if I'm use this method over something like Figaro.Also how do I push these to Heroku?
cjilbert504 replied

How do I create an attendance form for student attendance?

9
General
I've been racking my brain and just need to ask for help on the creating this function in my app. **Scope:** simple app for non-profit for tracking student attendance What I've done: * created the...
Solved

How can I convert this code to raw SQL and use in rails?

2
Rails
How can I convert this code to raw sql and use in rails? Because When I deploy this code in Heroku, there is a request timeout error. I think this will be faster if I use raw sql. @payments = Paym...
William Kennedy replied

Rails 7 -j esbuild —css bootstrap running into problems no importmap.rb file generated

1
Ruby
Hi Everyone, Going through the process of setting up a new rails project If I use rails new Rails generates a file importmap.rb in the config folder If I use rails new -j esbuild —css bootstrap ...
jesus12 replied

Suggested changes to Ubuntu 18.04 documentation

4
Site Feedback
I am totally new to Ruby and started with the installation documentation here (https://gorails.com/setup/ubuntu/18.04) on a totally fresh install of Ubuntu 18.04 LTS This isn't a complaint, I was ...
Zachary A Skaggs replied

Remove ActiveAdmin automatic link on show view

0
Gems / Libraries
Anyone know how to remove the default link Active Admin creates in the show view for other resources? In the code below, if `discipline` is a resource the user can edit and has an ActiveAdmin page,...
Colleen Schnettler posted

Devise - How do a logged in user change the password

1
Rails
HI, I am new to Rails. I am looking for your kind help to implement change password option for a logged in user. I do not want to use registrable option as, these users are created by admin and wan...
Surej GANGADHARAN replied

Routing Inbound Emails with Actionmailbox Discussion

3
General
Loved the nifty regx trick. Also liked the ``` if(user = User.find_by(....)) user else ... end ``` Didn't know you could define values in if statements and use them to return, will definately be...
Chris King replied

Stimulus based ActionCable Subscriptions - possible race condition related to turbolinks preview?

0
Rails
Hi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it se...
Craig Chamberlain posted

Spawn process and send data to STDIN when data avilable

0
Ruby
I want to spawn a process (golang binary), capture its STDOUT and have a reference to STDIN which i can send to at any time. In my case i am getting data in via Websockets and want to pass them to ...
Drazen posted

How do I dynamically load variables in Liquid templates?

2
General
I'm new to using Liquid templates, but I'm wondering how do I load data dynamically in my controller? The reason is because all the data is stored in my db in different tables, and loading all of t...

Making GeoSearch smooth with AJAX Discussion

2
General
Nice video Chris!
Amanda replied

How to deploy rails on IIS or on Xammp with Apache?

0
Rails
I have **Windows Server R2 2012**, I need to deploy rails app on it. I want to run rails app on either IIS or on Xammp with apache. I tried many solutions posted on the internet but none of them wo...
Mahmoud Sayed posted

Making a gem like thoughtbot's refills gem

3
Gems / Libraries
Heya, I saw on HN the other day that USDS has released a styleguide/component system based off of Bourbon. I'd like to toy around with making a gem based off of the Refills gem that allows me to l...
Chris Oliver replied

How do I add embedded youtube video to a text field within active admin with simplemde markdown?

3
Rails
When I add the Youtube embed code. It displays it as a string on the front end. The idea is that I could make this simple enough for the user updating the post to add the embed code easily themsel...

Why the automated deployment from GitHub to DigitalOcean, will change the image urls in my RubyOnRails app?

0
Rails
I have Ruby On Rails (version 6) app deployed in DigitalOcean, I am using ActionText for the images, the images are stored in DOSpaces. I display them in the following way in file _blob.html.erb &...

Mapping API Resources & Handling Pagination Discussion

2
General
Looks like the code in this episode has evolved over time, I'm watching it (paid my subscription too) in 2022, post pandemic, and the source code is quite different now at GitHub, where can I find ...
Brandon replied

Decorators with the Draper Gem Discussion

3
General
How do you handle something where you're using a foreign key, for example a Commentable concern. Comment has a user as commenter. The User class method works fine, but is there a catch all way to a...

How do I structure my DB to set up oAuth integrations with Facebook, Instagram, etc.

2
Rails
I have a Shopify app where they (Shopify) handle authentication. If you can login to your Shop on their platform, you can login to the Rails app. Therefore I have no need for Devise. It seems like ...

How to insert QRCode into PDF using receipts gem?

1
Rails
Hi! I'm using receipts gem to generate pdf. Also I want to insert QRcode for the payment (for example into footer section). Tell me please, is there any examples of doing so? I want QRcode to consi...
czepesch replied
Solved

Want to stay up-to-date with Ruby on Rails?

Join 91,129+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.