Testing your applications is an essential part of web programming that helps make sure you're on the right track. However, you don't have to do all the testing yourself, since your own computer can help you along the way. In this tutorial, you'll learn to test in Ruby on Rails 4, and discover some other hints to help you test if your application is working as it should.
- View Offline
- Exercise Files
…In this movie, I will introduce you to the…idea of writing test code for your rails applications.…What is testing?…Well, the good news is, is that whether you…know it or not, you're already testing your applications.…When you write a controller action, then design a template for it and load it up…in the web browser to see if you get the results that you expect, that's testing.…When you fill out a web form, submit it to your application, and…then check the database to see if the data was saved, that's testing.…You poke and prod your application all the time…to make sure that your code does what it should.…And if it doesn't, you change the code and test it again.…
How many times will you need to reload pages while building an application,…and how many times will you need to fill out forms with fake data?…It's a repetitive and time-consuming task that's essential in web programming.…But you know what's really good at repetitive, time-consuming tasks?…Computers are.…That's the idea behind writing test code.…
- Why use Ruby on Rails?
- Installing Ruby on Rails on Mac and Windows
- Rendering templates and redirecting requests
- Generating and running database migrations
- Creating, updating, and deleting records
- Understanding association types
- Using layouts, partials, and view helpers
- Incorporating assets using asset pipeline
- Validating form data
- Authenticating users and managing user access
- Architecting RESTful applications
- Debugging and error handing
Skill Level Beginner
1. What Is Ruby on Rails?
2. Installing Ruby on Rails on a Mac
3. Installing Ruby on Rails on a Windows Machine
4. Getting Started
5. Controllers, Views, and Dynamic Content
6. Databases and Migrations
7. Models, ActiveRecord, and ActiveRelation
9. Controllers and CRUD
10. Layouts, Partials, and View Helpers
13. Data Validation
14. User Authentication
15. Improving the Simple CMS
16. REST and RESTful Routes
17. Debugging and Error Handling
18. Introducing More Advanced Topics
Next steps1m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.