jamesw

jamesw

Agile Web Development with Rails 7: (page 118)

Title: AWDWR 7 (page 118)

You are styling the add to cart button inline in the actual HTML rather than the stylesheet as per previous versions of the book and goes against everything I’ve ever learned about Rails programming. Why is this? Is this a limitation of Tailwind?

Marked As Solved

rubys

rubys

Author of Agile Web Development With Rails

Welcome to Rails 7!

I’ve been with Rails since Rails 1. It seems every major release of Rails there are major paradigm shifts. Best practices change. Rails drives a number of these changes, and keeps up with others.

How Rails interacts with both JS and CSS is the biggest change with 7.0, and Tailwind’s integration is a bit further ahead that Rails’ integration with other CSS frameworks in two important ways: there is no node.js dependency, and the scaffold templates generated are enhanced.

As a book author, tailwind has allowed me to replace pages of text with lines of css atttributes. And hotwire allowed me to remove an entire chapter. The end result: a book that focuses more on Rails and less on web technologies.

Rest assured, if tailwind is not for you you are welcome to use a different CSS framework. Or no framework at all.

Popular Prag Prog topics Top

New
iPaul
page 37 ANTLRInputStream input = new ANTLRInputStream(is); as of ANTLR 4 .8 should be: CharStream stream = CharStreams.fromStream(i...
New
yulkin
your book suggests to use Image.toByteData() to convert image to bytes, however I get the following error: "the getter ‘toByteData’ isn’t...
New
herminiotorres
Hi @Margaret , On page VII the book tells us the example and snippets will be all using Elixir version 1.11 But on page 3 almost the en...
New
conradwt
First, the code resources: Page 237: rumbl_umbrella/apps/rumbl/mix.exs Note: That this file is missing. Page 238: rumbl_umbrella/app...
New
AndyDavis3416
@noelrappin Running the webpack dev server, I receive the following warning: ERROR in tsconfig.json TS18003: No inputs were found in c...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
kolossal
Hi, I need some help, I’m new to rust and was learning through your book. but I got stuck at the last stage of distribution. Whenever I t...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New
andreheijstek
After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
foxtrottwist
Here’s our thread for the Keyboardio Atreus. It is a mechanical keyboard based on and a slight update of the original Atreus (Keyboardio ...
New
New
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
PragmaticBookshelf
Author Spotlight Erin Dees @undees Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
New
New
New

Latest in PragProg

View all threads ❯