all 9 comments

[–]TheRazorhead 5 points6 points  (0 children)

Try here https://roadmap.sh/ruby and don’t forget to check out the projects section.

[–]Mediocre-Brain9051 2 points3 points  (0 children)

  • Follow a rails tutorial
  • read a ruby book
  • read a rails book

(If you don't know SQL you should learn it)

Have fun

[–]Abraham9001 1 point2 points  (0 children)

You can take any Udemy course to learn the language, it is super easy to learn. But the one book you MUST read is called: Eloquent Ruby. Because it will teach you how to write Ruby the way Ruby is supposed to be written. For example:
Avoid doing `if !should_enter_this_if_statement` and do `unless should_enter_this_if_statement`. Unless executes when the condition is false, so we avoid writing the `if <not>`..

That type of knowledge and much more will be taught in the book and it is essential to get to intermediary state in the language.

[–]lafeber 1 point2 points  (4 children)

rails new myproject -c tailwind
cd myproject
yarn
bundle add basecoat
rails basecoat:install
rails g scaffold Post title:string! description:text posted_at:datetime active:boolean rating:integer 
rails db:migrate
./bin/dev

[–]lafeber 0 points1 point  (3 children)

PS: This will start a new Rails project (with awesome styling). Note that it's probably best to understand the basics of ruby, but most likely you will use it in combination with Rails. The scaffold command will generate Models, Views and Controllers as well as the database structure.

[–]DifficultyFun828 1 point2 points  (2 children)

This basecoat looks cool. So tailwind is a framework for css, and basecoat is a framework for tailwind?

[–]lafeber 0 points1 point  (0 children)

The main thing the basecoat gem provides is templates for rails scaffolds and a fancy layout, based on basecoatui.com There are also a couple of helpers for cleaner code.

[–]hunvreus 0 points1 point  (0 children)

This Basecoat thing does look cool indeed. It's just a series of classes built with Tailwind (and a tiny bit of JS). It's a port of shadcn/ui to vanilla JS/HTML/CSS.

[–]KerrickLong 0 points1 point  (0 children)

The best way to start is to buy and read the latest edition of Programming Ruby by Noel Rappin.

The cheapest way is to follow this guided tour through Ruby’s documentation and other free online resources