Sha256: 922a0912ac364e7d6edf32d4f62eb2fc8f1aaeafa172fd51a62279852ac5ac93

Contents?: true

Size: 207 Bytes

Versions: 2

Compression:

Stored size: 207 Bytes

Contents

class PageController < ApplicationController
  def show
    page = params[:page] || params[:section]
    @page = Page.find_by_name page

    if !@page
      render :action => params[:page]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sushifish-0.9.6 lib/generators/sushi/templates/page_controller.rb
sushifish-0.9.0 lib/generators/sushi/templates/page_controller.rb