This project intend to follow DHH presentation on Rails 7
- 0:00 Scaffolding
- 4:00 Developing the Domain Model (Post)
- 5:08 Built in console/repl
- 6:15 ActionText Rails’ Rich Text Editor
- 9:20 Javascript Import Maps - no node or webpack :D
- 10:25 Adding JS packages using pins
- 12:50 Downloading JS packages instead of using CDN
- 13:40 Adding Comments to the Blog Post
- 15:40 Adding Comments to the Web UI
- 20:40 Adding Email Notifications with ActionMailer
- 24:20 Live Updates via Websockets
- 27:30 Testing
- 29:15 Deploying to Heroku
Thanks to Jeremy Ward
- Ruby: 3.2.2
- Rails: 7.0.4.3
I needed to add gem ‘redis’ to Gemfile in order to make ActionCable works on Heroku
- I also needed to install vips for ActionText handle attached images.
$ sudo apt install libvips
$ git clone https://github.com/acdesouza/demo_rails_7.git
$ rvm install "ruby-3.2.2"
$ cd demo_rails_7
$ bundle
$ rails db:reset
$ rails server