|
Blog捲:
Now we can start using Ruby to create our first web application. We previously used the Prototype and script.aculo.us libraries to dynamically modify an XHTML page, now we'll use Ajax via the script.aculo.us Ajax.Autocompleter to 'talk' to a simple Ruby web application. This lesson will introduce you to WEBrick, the Ruby web server, HTML forms, the ERB templating system, and Ajax. Review of Ruby, Overview of Ruby on Rails The last two lessons presented a whirlwind guide to Ruby, demonstrating a simple command line program, and a simple web application. That was a lot of material to digest, so in this lesson we'll make a short review of the important things we learned, and explain iterators and code blocks in a little more detail, since they caused some problems for some of the students. As we still have much ground to cover, half of this week's lesson is also dedicated to an overview of the Ruby on Rails framework, which we'll be using in the next two lessons to construct a more complicated web application. Ruby on Rails, Part 1 This lesson starts us on a two part adventure building a web application using Ruby and the Ruby on Rails framework. We will build a web application for multiple users which allows them to upload images into albums. The complete source files for this lesson can be found at LUGPC9.zip - The WebAlbum Application - Reality Check - Using Rails Generators - Our First User - Pause for Thought - The Master Layout Template - Controllers and Helpers - First Release Ruby on Rails, Part 2 This lesson concludes the two part adventure building a web application using Ruby and the Ruby on Rails framework. The next step will be to create another two classes that make up our data model, namely albums and pictures. The complete source files for this lesson can be found at LUGPC10.zip - Creating the Albums and Pictures - The Album Controller - The Album Views - The Album Model - The First (and Second) Album - Let's Add Some Pictures - The Picture Controller - Picture Controller and RMagick - The Picture Views - Finally, Some Configuration - Adding Some Spice with Lightbox - The Results Popularity: 2% [?] Related Posts: Tags for this post>> Ruby | Ruby On Rails No Comments »No comments yet. RSS feed for comments on this post. Leave a commentYou must be logged in to post a comment. Powered by WordPress |





























