Sha256: abe55c50eb43e1dc78db3f6a2da3e4581ad312062659e02899c7d2163b186e4e

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 Bytes

Contents

class ApplicationController < ActionController::Base
  self.append_view_path File.join(File.dirname(__FILE__), "views")
end

class UsersController < ApplicationController
  def index
  end

  def show
    @user = User.find params[:id]
  end

  def new
    @queen = Queen.new
    @prince = Prince.new
    @paper = Paper.new
  end
end

class GamesController < ApplicationController
  def show
    @game = User.find(params[:user_id]).games.find(params[:id])
  end
end

class TreesController < ApplicationController
  def show
    @tree = Tree.find params[:id]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
easy_presenter-1.1.1 spec/fake_app/app/controllers.rb
easy_presenter-1.1.0 spec/fake_app/app/controllers.rb