In this article, I will explain to you more about the basic associations belongs_to and has_many, by using a blog app to explain it!

So let’s create our User model with just a name.

$ rails g model User name

Now we got our User model with a column “name”…

In this article, I will explain to you more about basic validations, error messages and forms.

So let’s start by creating a User model!

$ rails g model User name email age:integer

And now we need to migrate our model into our database.

$ rails db:migrate

To create the controller…

Hello friends! In this article, I will explain to you more about how to create a basic API using Ruby on Rails.

Did you ever wonder when you see “User.find(params[:id])” what those params actually is? …

jordy garcia

Full-Stack Web Developer. Ruby on Rails, React, Redux. JavaScript, Improving open-source projects, one commit at a time.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store