Ramaze by Example – Conclusion

November 26, 2008 at 15:18

Filed under: Computing — Pistos @ 15:18

This is the conclusion of Ramaze by Example, a tutorial on web development. In Part 11: Validation and Error Handling, we added a custom error page and handlers for common user errors.

Having gone through this tutorial, you should now know about:

  1. installing Ramaze
  2. setting up a database schema
  3. creating a base Ruby file for an application
  4. models and using them to interface with the database
  5. views
  6. interpolating data into views
  7. controllers
  8. the relationship between requests, controller methods and views
  9. how to implement basic CRUD operations
  10. handling HTTP POSTed data
  11. using layouts for consistent page appearance
  12. where Ramaze gets static files from
  13. basic built-in Ramaze methods and helpers, like the link, flash and redirect helpers
  14. handling errors and displaying error messages

Armed with this information, you should be well-equipped to build a small web application of your own right now.

Learning More

This tutorial has covered a fair bit, but there are actually considerably more features and functions of Ramaze that I didn’t discuss. Some of these are:

  • partials or elements
  • session variables
  • aspects
  • testing
  • routing
  • deployment
  • form helpers and scaffolding generators
  • cooperation with Javascript, AJAX
  • … and more!

I hope to cover some of these things in future blog posts. You can subscribe to my blog via RSS or by email.

Here are some resources you can reference to learn more about Ramaze:

Get Started!

# gem install ramaze

require 'ramaze'
class MainController < Ramaze::Controller
  def index
    "Hello, world!"
  end
end
Ramaze.start

What are you waiting for? Write your first single-file web application right now! :) Then stop by our IRC channel and say hello. We’d love to hear from you. :)

Share

Related posts:

  1. Ramaze by Example – Part 11: Validation and Error Handling
  2. Ramaze by Example – Part 6: Adding Tasks
  3. Ramaze by Example – Part 5: Controller
  4. Ramaze by Example – Part 9: Layout
  5. Ramaze by Example – Part 1: Database Schema

3 Comments »

RSS feed for comments on this post. TrackBack URI

Leave a comment

You may use Markdown syntax in your comment.

Powered by WordPress.