Dave Sanders


70 Experience
0 Lessons Completed
0 Questions Solved


Posted in How do I include FontAwesome Pro in a Rails 7 project?

I realized just now that I can use the Pro CDN for font awesome directly. But, I'm going to leave this question open in case someone knows how to solve this, so I have it for another day, or if I decide to serve FA myself.

Posted in How do I include FontAwesome Pro in a Rails 7 project?

I own a license to FA Pro, and I want to use it in a new Rails 7 project. It doesn't look like I can do an importmap include of the pro font awesome, or if so, I'm doing it wrong. So I downloaded the latest build and dropped it into my vendors folder.

But I can't figure out what I need to do to be able to use these classes. I tried a stylesheet link tag to the vendors folder (and kept trying various paths for the subfolders). I tried adding it to my manifest, but I can't seem to reference it in my SCSS imports.

Ideally, I'd like to link to the vendor'ed fontawesome all.min.css separately in my layout, rather than include it in my application CSS. But I'm having a heck of a time figuring out how to add it properly.

Posted in How to use Hotwire in Rails Discussion

Yeah, I REALLY don't like that in this implementation. IMO, a Model should be about validation and data management, not causing things to happen on a front-end. I feel like these types of broadcasts should always be coming from the controller. It feels icky to put that in there when we've been working on separation of concerns for so long.

I guess the benefit is that you are sure it happens on every save, and you don't forget to send a broadcast from one controller action to the next. But it still feels wrong to me.