Skip to content

Instantly share code, notes, and snippets.

@alanhogan
Created December 13, 2013 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanhogan/7948405 to your computer and use it in GitHub Desktop.
Save alanhogan/7948405 to your computer and use it in GitHub Desktop.
if Rails.env.development?
class DevtoolsController < ApplicationController
def modules
@modules = Dir["app/assets/stylesheets/nri-modules/*.css.*"].map do |filename|
filename =~ %r{/([^/]+)\.css}
$1
end
render layout: 'text'
end
def module
@module_name = params[:module_name]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment