Ruby on Rails Community Forum
How to Add Pagination for Blog Posts in Rails Discussion
6
General
I like the manual approach of looking inside the `pagy` object and finding your way to get what you want! That is what I usually do instead of searching the doc :)
A simpler approach that I recomm...
Alex Castillo replied
Adding CSS Design Discussion
2
General
why don't you used tailwind?
Kentastic replied
Adding TailwindCSS to Rails Discussion
12
General
For those with the problem of "bin/dev: line 8: exec: foreman: not found"
- Install the foreman gem -> bundle add foreman.
- Add the "bundle" word to the beginning of this line of code (bundle...
MehdiElrafi replied
Asset Pipeline
2
General
What are some excellent resources to get a good foundational understanding of asset pipeline, esbuild, import maps, js bundling. I have a decent knowledge of Rails, but I have trouble understanding...
Francisco Holcomb replied
How to use Bootstrap with Webpack & Rails Discussion
50
General
Thanks for posting this and the previous video on using tailwindcss. It's helpful to see the main themes reinforced in each of the videos. One thing that I'm struggling with is what seems like a vi...
bradley replied
css forum Go Rails strategy
0
CSS
I'm following the tutorial for creating the forum and using Tailwind to do the layout. I have seen that classes are used that are not native to Tailwind. What strategy did you use to build the Go ...
João M Cortat posted
Datatables From Scratch Using Hotwire Discussion
32
General
fantastic thanks
David Krider replied
Separate JavaScript Importmaps For Rails Engines Discussion
3
General
Good stuff! I have an idea for another episode/lesson:
When using TailwindCSS (which is pretty much the standard nowadays) in an Rails app, I found myself wanting to build "plugins" or extended fun...
Mateusz Żołądek replied
Running into render build error related to Tailwind
9
Rails
Following along with the Build a Blog lesson and currently trying to deploy on render. I can't seem to pass the below error during build - has anyone else seen this before? Locally tailwind is wo...
Chris Oliver replied
Why aren't Tailwind UI components displaying properly?
0
Rails
Is anyone else recently having issues with Tailwind UI components not displaying properly? For example, let’s examine the first “Stacked” component: **tailwindui dot com/components/application...
Hideko Endo posted
Struggle with Rails 7, esbuild, and Tailwind CSS Asset Loading
3
Rails
Recently, I ran into an issue while setting up **esbuild** and **Tailwind CSS** in my Rails 7 app. Despite following all the recommended steps, my **stylesheets** and **JavaScript files** simply wo...
Florian Osterhus replied
How can i install Daisy UI?
0
Javascript
I want to be able to use Daisy UI, but i am reading different ways to accomplish this – making me confused on how to actually install node packages.
1. One way is setting up the CDN, which is not ...
Using tailwind css in my rails app, patterned after your blog tutorial. How do I get rid of all the whitespace on each side of the page, I want to use the whole screen?
1
CSS
So I have modified by tailwind.config.js file as such:
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: [
'./public/*.html',
'./app/helpers/**/*.rb',
...
Mike Cannon replied
Deploy rails 7.2+
2
Servers
Rails 7.2 dev containers include a compose file, enabling me to run Rails, PostgreSQL, and Redis locally with just Docker installed on my system.
So I created run: rails new --rails-version 7.2.0...
Greg S replied
How to use Javascript via Webpacker in Rails 6 Discussion
17
General
Alternatively to the webpacker way of require the flatpicker css in the `packs/application.js` you can do someting like:
```
/*
*= require flatpicker/dist/flatpicker
*/
```
In your rails `app/a...
Tony Dehnke replied
Best practices for structuring reusable frontend components (coming from Angular/React) ?
0
Rails
Hey I'm an Angular developer diving into the Ruby on Rails, and I'm trying to figure out the best way to structure reusable frontend components, like buttons, in a Rails project. Especially because...
Cengiz Gürtusgil posted
How do I create a gem for my ViewComponents that include Stimulus?
0
Gems / Libraries
Can anyone point me at a guide or tutorial that will help me built a gem that does the following:
- Allows me to have my ViewComponents
- Styled with Tailwind
- Interaction with Stimulus controlle...
Mark Stephenson posted
New website design!
17
General
It took me several weeks to redesign everything and it was a TON of work. The main chunk of work was moving from Bootstrap to TailwindCSS and that's quite a lot of effort because you have to rewrit...
Dhairya Majmudar replied
How to Deploy Rails to Render Discussion
14
General
Great video, thanks Collin!
Emmaotiki5 replied
How to Deploy Rails to Fly.io Discussion
8
General
Great. Sets up Docker which I didn't want to get into, so that's a great help. Trying it. Looks like $7/month with a Postgres db.
Stéphane Paquet replied