Join Kevin Skoglund for an in-depth discussion in this video Rails, part of Ruby on Rails 3 Essential Training.
In the last movie, we took a look at RubyGems, the Package Manager for Ruby libraries. Now that we have the RubyGems installed, we will make it really simple for us to install Ruby on Rails because Ruby on Rails is a gem. Let's go to the command line and see how. So we'll just want to open up our Command Prompt, if you don't already have one open, and from here we saw we could see gem list and it will show us the gems that are currently installed. In order to install Rails, we just say gem install rails. It's that easy. This will then go out on the Internet to that RubyGems web site that we were looking at and looks for a gem called Rails.
It will then find out all the pieces that Rails needs to be able to work. It may have other gems that it depends on, and it will bring all of those back and install them for us. It will do everything we need automatically. Now at this point, Ruby has installed those gems. You see it says successfully installed. Then it goes through and built some documentation for each one of those. That process may take four or five minutes. You may want to walk away, and just come back in a few minutes when it's done building that. Okay, now it's done installing. Let's check to make sure that it's there. gem list.
So we will see now there is a lot more gems installed. All those things that Rails needed to work. We can see there is Rails 3.0. There is also all of these parts of Rails up here, actionmailer 3.0, actionpack 3.0. We will talk about those later, but these are all gems that are needed by Rails. Now in addition to installing the Gem, it also installed a small command line program which is called Rails that we will be using. So, Rails is a library of Ruby code that can power our application, but it's also a small little program from the command line that helps us to interface with that library Ruby code from the command line. So, we can type rails -v, just like we did gem -v and ruby -v, and the command line will tell us what version of Rails we currently have installed.
If we have multiple versions installed, because it is possible to install several versions, it will tell us what the default one will be. Now we have Rails installed and we're ready to use it, and now we need to move on to making sure that we have a database that we can use.
- Understanding MVC (Model View Controller ) architecture
- Routing browser requests through the framework
- Responding to requests with dynamic content
- Defining associations and database relationships
- Creating, reading, updating and deleting records
- Working with forms
- Validating form data
- Reviewing built-in security features
- Authenticating users and managing user access
- Debugging and error handling
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
12. Data Validation
13. User Authentication
14. Improving the Simple CMS
15. Debugging and Error Handling
16. Introducing More Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.