@@rapid-ruby right. I had yarn errors on bin/dev because I didn’t have @hotwire deps. Had to use npm to install manually. I would think bundle install would have taken care of this via installing rails.
Ah that’s a good point! When you run “rails new my_app”, it will yarn install, so I have not needed to do that, my bad! Quick tip: when pulling a rails app from GitHub, if you run “bin/setup” it should install everything and run yarn/npm as well. Bundle just installs any Ruby dependencies listed in Gemfile.
Very interesting. Question: do you do all this hand-editing for each new Rails application, or did you just do it once and copy the entire app into a new repository?
Hey Shannon, great question! I used to do this by hand for each project, as there might be slight differences, but since I'm creating so many new example apps these days for youtube content, I've recently created a started template, it's not doing anything fancy, it's just a Rails app that I clone and make a few minor changes, you'll see me workflow in the Readme file. Hope that helps! github.com/phawk/rapid-ruby-starter
Thank you! That is very helpful. I'm creating a new app with rails 7.1.0.beta1 and it works like a charm. I removed `data: { turbo: false }` from registrations/new.html.erb since devise v4.9.2 supports hotwire out of the box now.
I'd suggest listing npm/yarn, their versions, as dependencys and requirements in order to get this working. TY.
Hey SV, do you mean the versions installed on your system? Thanks
@@rapid-ruby right. I had yarn errors on bin/dev because I didn’t have @hotwire deps. Had to use npm to install manually. I would think bundle install would have taken care of this via installing rails.
Ah that’s a good point! When you run “rails new my_app”, it will yarn install, so I have not needed to do that, my bad! Quick tip: when pulling a rails app from GitHub, if you run “bin/setup” it should install everything and run yarn/npm as well. Bundle just installs any Ruby dependencies listed in Gemfile.
Thanks a lot, I've enjoyed every bit of it!
it was interesting to follow, thanks for sharing!
Great video. Thanks a lot. I was wondering if you zip this setup and unzip for each new project but you've answered the question below.
Very interesting. Question: do you do all this hand-editing for each new Rails application, or did you just do it once and copy the entire app into a new repository?
Hey Shannon, great question!
I used to do this by hand for each project, as there might be slight differences, but since I'm creating so many new example apps these days for youtube content, I've recently created a started template, it's not doing anything fancy, it's just a Rails app that I clone and make a few minor changes, you'll see me workflow in the Readme file. Hope that helps!
github.com/phawk/rapid-ruby-starter
@@rapid-ruby awesome. Thank you
Thank you! That is very helpful. I'm creating a new app with rails 7.1.0.beta1 and it works like a charm. I removed `data: { turbo: false }` from registrations/new.html.erb since devise v4.9.2 supports hotwire out of the box now.