Richard Wigley

Joined

1,650 Experience
16 Lessons Completed
0 Questions Solved

Activity

Rails 7 rails new gives options for esbuild and tailwind 3... Use those and you'll have a working example in a few seconds. Tailwind3 purges out the box.

Tailwindcss now has purge built in (thanks @ScottKnight I'm just making your comment more visible instead of as a reply). Follow the Tailwind docs for "optimizing for production" to see if it covers what you need.

https://tailwindcss.com/docs/optimizing-for-production

Posted in Primer on Rails 5.1's new UJS library Discussion

I tried to use "Rails" in the console as this video demoed. It didn't work with the error message "Rails is not defined". There seems to be a relevant Rails issue, https://github.com/rails/rails/issues/36686 , in which a Rails core member commented that: "When using rails-ujs with webpack window.Rails is indeed not defined."

There is a stackoverflow question on this topic: https://stackoverflow.com/questions/56128114/using-rails-ujs-in-js-modules-rails-6-with-webpacker

Posted in How to write System Tests in Rails Discussion

2.54 "you should use url_helpers over path_helpers" - the Rails guide examples use path_helpers and url_helpers. Are they mistaken? https://guides.rubyonrails.org/testing.html#implementing-a-system-test

Posted in Sending emails with Mandrill Discussion

I was seeing 5 minute+ delays and no shows - which is a problem for password resets! Chris has done the hard work so switching between providers isn't a chore. I'm testing another SMTP service and this is giving a better response time.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.