Sha256: 4529c860b6395f5a107b01ac5785893bb7e0e3f13ad84f7c193f3706299ec8ab
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
module Throwup class WireframesController < ActionController::Base layout 'wireframe' def index root = Rails.root.join("app", "views", "wireframes") @files = Dir[root.join "**", "*"] @files = @files.map do |f| f.to_s.slice! root.to_s f.match(%r{/([^\.]+)})[1] end p @files end def show render template: "wireframes/#{params[:id]}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
throwup-0.0.1 | app/controllers/throwup/wireframes_controller.rb |