Skip to content

Instantly share code, notes, and snippets.

class DemoController < ApplicationController
before_filter :define_some_variables, only: [:index, :hello]
def index
# Renders the action it would render if it were the "hello" action.
# render({:action => 'hello'}) # This is the old way, Rails 1.x.
# Specifies the template to render.
render({:tamplate => 'demo/hello'})