This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
- This project was built from the following article: Let's Learn Ruby on Rails + Hotwire by Building a To-Do List
- Start rails server:
bin/rails server
- Start rails server with TailwindCSS with foreman:
bin/dev
- List of gems (dependencies) to use in your project: RubyGems
- Add gem to your project:
bin/bundle add <GEM_NAME>
- Getting started with Rails
- Install Tailwind CSS with Rails
- Generating a resource:
bin/rails generate resource <RESOURCE_NAME> <FIELD1_NAME>:<FIELD1_TYPE> <FIELD2_NAME>:<FIELD2_TYPE>
- Running migrations:
bin/rails db:migrate
- Why You Need Strong Parameters in Rails
- Action Controller Overview
- Active Record Basics
- Active Record Migrations
- URL that lists your app's routes:
http://localhost:3000/rails/info/routes
- Show flash messages in layout to avoid code repetition
- Customize alert flash message and not just notice
- Dismiss flash messages after some duration
- Search use case for turbo streams
- Flash message not showing when task is updated