Sha256: 0b94732f18cc3402903b5156f89b90ede5cbf8c3cc18a8283ace8638f49deb6f
Contents?: true
Size: 480 Bytes
Versions: 17
Compression:
Stored size: 480 Bytes
Contents
class <%= class_name.pluralize %>Controller < ApplicationController before_filter :find_page def index @<%= plural_name %> = <%= class_name %>.find(:all, :order => "position ASC") end def show @<%= plural_name %> = <%= class_name %>.find(:all, :order => "position ASC") # for body_content_right @<%= singular_name %> = <%= class_name %>.find(params[:id]) end protected def find_page @page = Page.find_by_link_url("/<%= plural_name %>") end end
Version data entries
17 entries across 17 versions & 1 rubygems