D john
Joined
Activity
Posted in How to use Hotwire in Rails Discussion
OMG.
Rails 7.2.2
A lesson learnt. Next time any problem with the Tuts, check this comment section.
It took me 2 days and praying my subconscious mind (even chatGPT didn't help point out to run Redis :( to help figure out I wasn't running Redis on the local machine as the cause for Browser not updating when record change in Rails console. Then I came to report this in comments and someone had found the solution a year ago.
Following Problems I had with Trix editor in Rails 7.0.8, were resolved in Rails 7.2+
- content & toolbar icons not displayed, as fixed in Chris' tutorial
- ActiveStorage upload from Trix Editor field to AmazonS3 (not working in Rails 7.0.8)
I have no idea why Pagy 9.3 does not render the widget properly on rails 7.0.8.6
Followed the instructions on pagy github repo for tailwind
The only way to get it to work is to downgrade pagy to "6.5"
Also if you are using HAML, it requires to use .html_safe
to render the minimal widget on the page
&= pagy_nav(@pagy).html_safe if @pagy
Can anyone tell me if using Cloudinary can be used as a better alternative to Amazon S3 for file uploads ?
Especially since Cloudinary seems to have Digital Assets Management commands that will work from Rails Apps ?
User.where(email: "me@mail.com").first_or_initialize seems to throw an error, - No such method in Active Record.
But
User.first_or_initialize_by(email: "me@mail.com") seems to work :)