Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Workshop with Christopher Greene & Aimee Simone Help us caption & translate this video! http://amara.org/v/FGa2/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video "Rails for Zombies: Parts 1 & 2" featuring Christopher Greene and Aimee Simone breaks down fundamental concepts of Ruby on Rails through a fun, interactive workshop tied to a thematic project called "Twitter for Zombies." The session is designed for both beginners and more experienced developers looking to refresh their Rails skills. Key points covered include: - **Getting Started with CRUD:** The workshop kicks off with an explanation of CRUD (Create, Read, Update, Delete) operations, fundamental to web applications. The presenters illustrate CRUD by using examples related to a zombie-themed application. - **Database Structure:** Participants learn about database tables and structures, initially focusing on a 'tweets' table and how to retrieve specific data from it. The presenters detail how to query the database using Rails conventions, like using `tweet.find(3)` to get tweet details. - **Creating New Records:** The video discusses the process of creating new entries in the database, using `tweet.new` and `T.save`, as well as alternative one-liner commands like `tweet.create`. - **Reading and Updating Data:** The tutorial elaborates on various methods to read from the database, such as `find`, `where`, and their efficiency in counting records without pulling all data. Additionally, updating methods are explained, including modifying attributes and saving changes efficiently. - **Database Migrations:** Greene and Simone dive into the concept of database migrations, emphasizing their importance in version control of the database schema. They walk through the generation of migration commands and the execution of `rake db:migrate` to implement changes. - **Using the Console:** The presenters showcase how to use the Rails console for testing and debugging, highlighting examples of commands for creating and retrieving zombies, and how to change the zombie's attributes safely. - **Hash Syntax in Ruby:** The difference between older and newer hash syntaxes in Ruby, particularly focusing on Ruby 1.9 syntax, is addressed. - **Rake Tasks:** Greene explains various rake commands that help manage database tasks, such as `rake db:rollback` for undoing migrations and how to quickly set up the application using the schema file. - **Configuring the Database:** The configuration of the default SQLite database is discussed, along with how to switch to MySQL if required. Overall, the workshop encourages viewers to actively participate by coding along in a fun environment, establishing foundational skills in Ruby on Rails while nurturing creativity in application programming. The session concludes with a call to action for participants to engage deeply with the presented material through hands-on experience.
Suggest modifications
Cancel