FlashKeepers

PHP and Ruby · College · College and University

Ruby on Rails Fundamentals

Rails MVC, Active Record, routes, migrations, validations, associations, convention over configuration and testing.

About this set

40 basic cards for College PHP and Ruby. It opens with "What does MVC stand for?" and "In Rails MVC, what does a Model represent?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What does MVC stand for?
Show answerModel, View, Controller
In Rails MVC, what does a Model represent?
Show answerThe data and business logic of the application
In Rails MVC, what does a View represent?
Show answerThe user interface displayed to the user
In Rails MVC, what does a Controller do?
Show answerHandles requests, processes data, and returns responses
What is Active Record in Rails?
Show answerAn ORM library that maps database tables to Ruby classes
How does Active Record represent database tables?
Show answerEach table is represented by a Ruby class, each row by an object
What command creates a new Rails application?
Show answerrails new [app_name]
What is a Rails generator?
Show answerA command-line tool that creates files and code scaffolding
What is a migration in Rails?
Show answerA reversible version-controlled database schema change
What command creates a migration file?
Show answerrails generate migration [migration_name]
What does 'rails db:migrate' do?
Show answerExecutes pending migrations to update the database schema
How do you roll back the last migration in Rails?
Show answerrails db:rollback
What is the purpose of model validation in Rails?
Show answerTo ensure data integrity by checking attribute values before saving
What validation checks that an attribute is not blank?
Show answervalidates :attribute, presence: true
What validation ensures an attribute value is unique in the database?
Show answervalidates :attribute, uniqueness: true

25 more cards in the app

Study this set free