Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "rails"


Understanding the basics of Ruby on Rails: SQL Databases and how they work

  • Now it’s time to learn about databases and how they connect with Ruby on Rails.
  • We usually use a condition to delete, like “I want to delete all people under 21 years old.” We will learn how later in this post!
  • Now we can use SQL language to query (select, delete, insert, update) data.
  • We now understand the meaning of databases, we’ve tried some basic queries, and have talked about the relationship between tables.
  • So we create a migration (Ruby code), run the rake db:migrate command in the terminal, and it generates a table Authors with first_name, last_name, email, birthday, created_at, and updated_at columns.
  • So when we create a Posts table, we need to store a reference to the post’s author (column author_id in the Posts table).
  • Behind the scenes, it is executing SELECT * FROM posts WHERE title = 'Database & Rails'query.

save | comments | report | share on


Understanding the basics of Ruby on Rails: HTTP, MVC, and Routes

  • Here we’ll understand the basics of how the web, the routes, and the MVC architecture work using the Ruby on Rails web framework.
  • The HTTP works like a request — response cycle in the client — server model.
  • Now that we understand how the Web works, we’ll study the MVC architecture and Rails Routes.
  • This model object gains capabilities (inherited from ActiveRecord — Rails class) to retrieve, save, edit, and delete data from database table.
  • In the controllerArticlesController we use the model Article to get all articles in the database and render the view index.html.erb as the server response (the UI).
  • The Rails request-response cycle is one of the first concepts you need to understand when you start learning web development.
  • The user does stuff (request to the server), the the Rails application has the router to map the URL path to the right controller.

save | comments | report | share on


Monthly trending Ruby on Rails repositories. December, 5

  • Originally I shared this post on Syndicode blog.
  • Hurray!
  • New Rails digest arrived at the beginning of winter.
  • The worst thing about software development that you can't use all of the cool tools you know.
  • But more you know - the better solution you can find in future.
  • In this digest you will meet error monitoring for Rails, Vue on Rails gem, publishing framework, DB schema managing tool, carpooling platform, Vim config for Rails and many other awesome repositories!
  • The list starts with the most recent updates.
  • Find my previous issues of Rails digests here.
  • I see the future in software development.
  • Infoholic, researcher.
  • Curious about everything.
  • Especially about JS, Rails, FP and web design.
  • The heartbeat of the software industry.
  • We’re a place where coders share, stay up-to-date and grow their careers.
  • We strive for transparency and don't collect excess data.

save | comments | report | share on


Monthly trending Ruby on Rails repositories. December, 5

  • Originally I shared this post on Syndicode blog.
  • Hurray!
  • New Rails digest arrived at the beginning of winter.
  • The worst thing about software development that you can't use all of the cool tools you know.
  • But more you know - the better solution you can find in future.
  • In this digest you will meet error monitoring for Rails, Vue on Rails gem, publishing framework, DB schema managing tool, carpooling platform, Vim config for Rails and many other awesome repositories!
  • The list starts with the most recent updates.
  • Find my previous issues of Rails digests here.
  • I see the future in software development.
  • Infoholic, researcher.
  • Curious about everything.
  • Especially about JS, Rails, FP and web design.
  • The heartbeat of the software industry.
  • We’re a place where coders share, stay up-to-date and grow their careers.
  • We strive for transparency and don't collect excess data.

save | comments | report | share on