This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'}) | |