How do I include FontAwesome Pro in a Rails 7 project?
I think if you are using "importmap" you can pin your vendor asset like the documentation said https://github.com/rails/importmap-rails
Absolute path:
import React from "/Users/DHH/projects/baseca...
ramzieus
replied
3
Rails
Accessing The Rails test.key on GitHub Actions
I have credential files and keys for production, development, and test. Meaning I have no master.key file.
How do I then access my test.key using GitHub actions?
Using these approaches does not w...
Brian Gilbank
posted
1
Testing
Rails for Beginners Part 10: Setting up a Git repository and Flash messages Discussion
Yep!
Chris is a great teacher and I'm grateful for the course, but there is no point in inviting someone and not letting the person talk.
Filipe Carneiro
replied
5
General
How do I pass local variables to iteration in turbo_stream?
In my app I have projects which have many tasks. The tasks are iterated through on the projects show page:
```
### Project#show
<% @tasks.each do |task| %>
<%= f...
Gabriel
posted
1
Ruby
How do i receive chunked files in API's
Hi i am building rails api based application. I need to receive bigger files in chunk api, and final one more api. Any idea or existing solution i can get or refer.
Dilip
posted
1
Tips
Form not displaying errors
Change
`render :new`
To
`render :new, status: :unprocessable_entity`
Ordin
replied
2
Rails
Metaprogramming Virtual Attributes Discussion
I have a model called Customer which belongs to a User. I am trying to implement a way for the Customer to have access to the attributes directly ( e.g.: `Customer.first_name` instead of having to ...
Leon Entrup
replied
4
General
Intersection Observer API to refactor Infinite scroll Discussion
This works great! The only thing I'd add is that if you want to hide the pagination itself, don't use "display: none" because the observer API won't work.
You can use "opacity:0" or some other way...
lsantobuono
replied
3
General
GitHub Actions with Ruby on Rails: Setting up Continuous Integration Discussion
As a note, for devs with PR process, this setup will cause to be n+1 since you'll be triggering runs on any push without considering the branch, a better approach would be to only count pushes to `...
Ignacio Alonso
replied
20
General
User Avatars with ActiveStorage Discussion
Hello, I am new in this, studying about Active Storage I want something like I can create recipe and in recipe model I have one image to store I understood in this video about Active Storage but do...
TilakP3811
replied
14
General
Liskov Substitution Principle Discussion
or like this
birds.select { |bird| bird.respond_to?(:can_fly?) }
Mateusz Bialowas
replied
9
General
How to use hCaptcha with Ruby on Rails, Turbo, and Stimulus.js Discussion
I consider `invisible_captcha` gem an easiest way to avoid bots. No extra steps for real users, only for the bots
Álvaro FA Araluce
replied
4
General
Rendering simple_calendar content using Turbo Frames
Did you ever get this working? I am working on something similar and would love for hotwire to update the events in the calendar.
spacerobotTR
replied
3
Rails
Air Quality Monitoring with Ruby, a Raspberry PI & PMS5003 Sensor Discussion
Awesome! Pretty cool. As Jason mentioned if you can have a video showing which Raspberry PI to use and how to connect a Raspberry PI to system to write code that would be great. Also please put lin...
Subrat Rout
replied
4
General