Web Apps / Ruby on Rails
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.
Learn More
Subtitles of the Movie
In this video we're going to look at Ruby on Rails briefly. Now, there's actually a whole entire VTC training series on Ruby on Rails, so I can't do it justice in seven minutes here other than just to give you a quick overview of what Ruby on Rails is really about. So what Ruby on Rails is, is a framework, a web application framework, that's the Rails part, and it's built using Ruby code, Ruby programming language code for the various parts of it and it works by having this particular paradigm of a model view controller. So say we have this web application running here and some web browser accesses it. It goes through a web server out here really, but we're just kind of skipping that for the moment here. So it calls in, calls for a particular controller that's Ruby code. That controller goes through if there's any database stuff it needs to do through a model that's Ruby code that represents the database, the model talks to the database, comes back to the controller with whatever information that it was seeking and then the controller builds a view. And the view is the HTML and JavaScript that eventually get put back out to the web browser. So that's essentially how Ruby on Rails works in very simplistic terms and it's all Ruby based and it's a pretty slick little system here. Click out of here real quick. Now, if you go to the Ruby on Rails website, www.RubyonRails.org, you go to that website, it'll get you started, if you're interested in the web app portion of it, I would recommend that you're up to speed with Ruby first because they're going to make all the assumptions about your programming knowledge with Ruby that, you know, are out there so, really, you need to be pretty confident with your Ruby skills in order to pull it off. But once you are, it's pretty straightforward stuff and it's a nice framework to develop very quickly and you can actually do some web 2.0 stuff fairly easily. So very quickly, let me just show you how to create a Rails application. And these will be available as working files, although you need to have Rails installed and that website details how to do that. So I'm going to just say Rails and call it test app and it's going to go ahead and create it and if I look in there, I have this test app now and it's got all these directories in here and I'll open up my text editor and I can go in here now and take a look. Nothing is really generated at this point. You can look at some of this code, but there's really nothing in here. But if we go in here, Let me show you touch here. There's a script directory and if we go down into that script director, there are some scripts in there and one of them is server and we can have a self-running web server here without having to run this through Apache, whatever, and if I backup a directory and I say script and server, it's going to go ahead and launch that and now it's running and if I go into my browser here, and I open up, I'll say local host. And there you go. You have a web application running. In no time you can create your own stuff in here, your own controllers. There's tons of tools that you can use to create these different things, these different aspects, different views, so forth. I recommend if you're interested in web application development using Ruby, to try out this framework. It's a great framework and if you want to learn more about it, go ahead and take a look at the VTC training videos for this. I was the author of those and I think that they're pretty good training. There's tons of other training out on the Internet. Even video training such as this. So I hope that that's a little bit of Ruby on Rails. Enough for you to understand it a touch and see if you're interested.
Tutorial Information
| Course: | Programming With Ruby |
| Author: | Al Anderson |
| SKU: | 33788 |
| ISBN: | 1-934743-01-1 |
| Release Date: | 2007-08-21 |
| Duration: | 8.5 hrs / 113 lessons |
| Work Files: |
Yes |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 