Subscribe
Tutorial search

Ruby on Rails Controller Tutorials


Sort by:
Executing methods of Rails controllers in Rake tasks
Executing methods of Rails controllers in Rake tasks
Executing methods of Rails controllers in Rake tasks
Difficulty:
Executing methods of Rails controllers in Rake tasks
Executing methods of Rails controllers in Rake tasks
How to create a cron job that calls the same code that a Rails action view is calling in an ApplicationController.
Difficulty:
Simplifying Rails Controllers with named_scopes
Simplifying Rails Controllers with named_scopes
So named_scope is great. It's a quick and clear way to share common SQL fragments within your app by defining them in your models. But one aspect of scopes that might not be immediately apparent is how much logic you can strip from your controllers this way.
Difficulty:
Zero-to-Sixty: Creating and Deploying a Rails App in Under an Hour
Zero-to-Sixty: Creating and Deploying a Rails App in Under an Hour
Give me an hour of your time, and I'll take you on a fly by of the Ruby on Rails framework. We'll create controllers, models, views, add admin logins, and deploy using Heroku's service in under an hour! In this article we'll create a simple bookshelf application where you can add books and write thoughts about them. Then we'll deploy the application in just a few minutes. So buckle up because this article moves fast!
Difficulty:
Using Ruby on Rails to Create A Twitter-Like Message Form
Using Ruby on Rails to Create A Twitter-Like Message Form
This tutorial will show you how to create a twitter message form that counts down the 140 characters and also allows you to input a message within the URL of the webpage as well. What’s cool about Ruby on Rails is instead of writing javascript to recalculate the message length, we’ll use Rails to automatically generate the correct javascript so that each time the field changes, the count is recalculated all through the controller object. Download the project code here.
Difficulty:
Virtual Attributes
Virtual Attributes
Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database.
Difficulty:
All About Layouts
All About Layouts
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.
Difficulty:
Tutorial : Basics on Ruby on Rails 2 Model, Controller and Views and Routing
Tutorial : Basics on Ruby on Rails 2 Model, Controller and Views and Routing
This tutorial explores the MVC concept of Ruby on Rails i.e Model,View and Controller
Difficulty:
Move Find into Model
Move Find into Model
Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.
Difficulty:
Login & Authentication Generator
Login & Authentication Generator
A controller/model/view generator for easily adding authentication, users, and logins to your rails app.
Difficulty:
Refactoring on Rails: Multiple Scopes in Controller
Refactoring on Rails: Multiple Scopes in Controller
Introduction to a couple of refactoring methods for Ruby on Rails.
Difficulty:
Refactoring on Rails: Move to Model
Refactoring on Rails: Move to Model
Learn how to refactor by taking logic out of the view and moving it to the controller, cleaning up the view in the process.
Difficulty:
Using Embedded Ruby on Web Pages
Using Embedded Ruby on Web Pages
Ruby on Rails is gaining popularity. But what if you are like me and want to use Ruby but really hate the command line? What if you don't want to create applications and controllers or do not want your web domain taken over by Rails? The answer is in eRuby.
Difficulty:
Search Term(s) (1): controller