Rails Framework

Rails Framework tutorial teaches you how to utilize de facto framework of choice for Ruby development. Learn how to create classes and methods with one line of Rails code. Such important concepts as scaffolding, and APIs are introduced in Rails Framework tutorials.

Rails Framework is an addition to Ruby programming language which made Ruby so popular with the development community. It doesn’t introduce any drastic new ideas but instead relies on proven techniques such as ActiveRecord, MVC as well as utilizes popular Ruby libraries such as rake and ERb.

Rails Framework relies heavily on naming conventions and highly opinionated language due to its prescriptive nature.  This convention of naming classes, variables helps Rail to implement shortcuts which would have require developers to implement manually. ActiveSupport technical is essential for this convention that Rails is popular for.

Rails framework is available as a part of rails gem which composed of libraries and rails command line tools. Rails gem allows you to provision all of the required files by simply issuing a command line that looks like this: “rails my-web-app”. Rails framework will provision directory structure as well as initial files required to start building Ruby of Rails application. It will also setup Webrick web server and prepare test case framework.

  1. Rails Model-View-Controller Architecture
  2. Passing data between Views and Controllers in Rails
  3. Template and Layout Files in Rails
  4. Redirect Implementation in Rails
  5. Rendering Rails Templates or Views
  6. Storing Data in a Relational Database in Rails
  7. Helper Functions in Rails Framework
  8. Setting Filters on Rails Actions
  9. Using Partials with Ruby on Rails
  10. Generating Forms in Rails
  11. Creating Web Services with Rails
  12. Sending Emails with Rails
  13. Writing Unit Tests in Rails
  14. Debugging Rails Application
  15. How to Raise an Exception
  16. Exception Handling and Retries in Rails

Featured pages

Ruby

Set of Ruby Object Oriented Programming Language tutorials that cover such topics as Ruby strings, …

Rails

Rails Framework tutorial teaches you how to utilize de facto framework of choice for Ruby developme…

Ruby Duck Typing

“If an object quacks like a duck just go ahead and treat it as a duck” – this fun…

Regular Expressions

Ruby uses the =~ operator to check any given string against regular expression. For example, a stri…

Credit Card Number

Every last digit of any credit card is a check sum digit that is determined by all digits in front …

Ruby Arrays

Ruby Programming Language has built in support for Arrays. Arrays help you define some of the compl…

Ruby Hashes

Hashes are very similar to arrays in Ruby and hashes interface is similar to Ruby array interface. …

Ruby Code Block

Ruby is very unique language when it comes to code blocks. You can simply pass a code block to a me…