DEV Community

Brittany
Brittany

Posted on

1

Day 25 - #100DaysofCode - Intro to Rails

Today I began to read the documentation for rails and work on some of the required lessons for my bootcamp. I did not get far because this week has been very unstable and difficult, but I will explain what I learned for those of you just beginning too.

First I had to install rails by writing gem install rails, which if you have an older Macbook like myself can take a while. I had to get a few extra updates but once I got it up and running I was able to easily create new application by running rails new new-app.

My lesson advised me to create a database and then run my application on my local server.

Unlike Sinatra, I did not have to set up my database manually or set up my models. I simply typed, rake db:create and then rails s and went to http://localhost:3000/.

And just like that, I was connected. I was amazing at how easy it was to get rails set up after spending weeks learning Sinatra, ActiveRecord, and SQL. Now, all that work (which was important to learn) was easily generated by running rails new APP_NAME I look forward to learning more and building my first Ruby on Rails project in the near future.

Thank you for reading.

Sincerely,
Brittany

Song of the day

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay