
Ruby has clean, simple syntax without tons of parenthesis, brackets, or semi-colons
@github @Shopify @Calendly @ThePracticalDev @eggheadio & @ConvertKit were built using Rails

This makes it easier to know where things are and how they are connected which gives you more time to focus on building features users need

You define models to make sure any new models match before being saved.
You can also associate different models with each other. For example users and their comments and/or articles.

You can you embedded Ruby(eRB) to put Ruby code inside of your views to display data from the database. You can display multiple users username writing just one line of code!

You can grab all users from the database and tell Rails to display them after a user logs-in or click a link to the user index page.

A user sign-up and user edit are both forms with emails, passwords, etc.
You can write the form once and use it in any view with the render keyword and eRB syntax.

Rails has built-in helpers for common things like formatting numbers. You can make your own helpers in the app/helpers folder and use them in your views with eRB.

A test folder is made with each new Rails app.
Each time you create a new model or controller it creates a test file as well.
Testing library minitest is built in. Use the test method with assertions to check for expected outcomes.

Some gems handle complex things like authentication and payments. Gems are located in Gemfile in the root of your Rails app.

Each path is linked to an action inside the controller.
The users path shows all users which is linked to the index action inside the controller. Which matches the users index view.
That's it! Those are the basics of how Ruby on Rails works!
I blog about Rails at https://williamjohnson.dev/
I post Rails screencasts at http://egghead.io/instructors/wi …
I blog about Rails at https://williamjohnson.dev/
I post Rails screencasts at http://egghead.io/instructors/wi …
Here’s a link to the first tweet if you want to retweet this thread https://twitter.com/willjohnsonio/status/1346123106033786880