● videoIntroduction
How Tailwind CSS Works with Rails

Unlock Revisiting Ruby on Rails
Subscribe for full access to every course, or buy this one on its own.
SECTION
Introduction
NEXT UP
Tests and Tools
COURSE
Rails Revisited
33 lessons
About this lesson
The Code
Running the site in development mode, ensuring that CSS gets compiled as we need:
bin/dev
Rendering a partial:
<span class="language-xml"><%=</span><span class="language-ruby">render(<span class="hljs-string">"directory/partial"</span>) </span><span class="language-xml">%></span>
It's important to remember that partials start with an underscore, but you don't use it when you call render.
When defining a route, you start with the HTTP verb, the matcher, and then the controller#action pair:
get 'about', to: "home#about"
Unlock Revisiting Ruby on Rails
Subscribe for full access to every course, or buy this one on its own.