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.
- Rails Model-View-Controller Architecture
- Passing data between Views and Controllers in Rails
- Template and Layout Files in Rails
- Redirect Implementation in Rails
- Rendering Rails Templates or Views
- Storing Data in a Relational Database in Rails
- Helper Functions in Rails Framework
- Setting Filters on Rails Actions
- Using Partials with Ruby on Rails
- Generating Forms in Rails
- Creating Web Services with Rails
- Sending Emails with Rails
- Writing Unit Tests in Rails
- Debugging Rails Application
- How to Raise an Exception
- Exception Handling and Retries in Rails