Tutorials Courses Interview Prep (100 Q&A) AI Tools (50) Developer Tools (50) Tracks Pricing Plans Blog & Articles Contact Us
Ruby on Rails MVC & Full-Stack Development 16 mins read Free Lesson

Rails MVC Architecture & Convention Over Configuration

Explore the Rails directory structure (app/models, app/controllers, app/views) and generator scaffolding.

Convention Over Configuration in Rails

  • Model class Tutorial maps automatically to database table tutorials.
  • Controller TutorialsController maps to views in app/views/tutorials/.
# Scaffolding command
bin/rails generate resource Tutorial title:string is_free:boolean
bin/rails db:migrate