This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.assets.version = '1.0' | |
Rails.application.config.assets.paths << "#{Rails.root}/vendor/bower_components" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require jquery | |
//= require jquery.turbolinks | |
//= require jquery_ujs | |
//= require materialize/js/jquery.easing.1.3 | |
//= require materialize/js/animation | |
//= require materialize/js/velocity.min | |
//= require materialize/js/hammer.min | |
//= require materialize/js/jquery.hammer | |
//= require materialize/js/global | |
//= require materialize/js/collapsible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.assets.version = '1.0' | |
Rails.application.config.assets.paths << "#{Rails.root}/vendor/bower_components" | |
Rails.application.config.assets.precompile << /materialize\/font\/.+\.(?:svg|eot|woff|woff2|ttf)\z/ | |
Rails.application.config.assets.non_digested_assets ||= [] | |
Rails.application.config.assets.non_digested_assets << 'materialize/font/**/*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rake::Task['assets:precompile'].enhance do | |
Rake::Task['assets:create_non_digested_assets'].invoke | |
end | |
namespace :assets do | |
logger = Logger.new($stderr) | |
task :create_non_digested_assets => :'assets:environment' do | |
manifest_path = Dir.glob(File.join(Rails.root, 'public/assets/.sprockets-manifest-*.json')).first | |
manifest_data = JSON.load(File.new(manifest_path)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html | |
head | |
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" | |
meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" | |
title BasicApp | |
= favicon_link_tag | |
link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" | |
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true | |
= javascript_include_tag 'application', 'data-turbolinks-track' => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
def nav_header(key) | |
active = false | |
if key == :sample_a | |
active = true if is_nav_active?(:sample_a1) | |
active = true if is_nav_active?(:sample_a2) | |
active = true if is_nav_active?(:sample_a3) | |
text = 'Sample A' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#welcome-index | |
.row | |
.col.s12.m9 | |
.section | |
#p-title.col.s12.scrollspy | |
h2.u-title Welcome | |
.col.s12 | |
p Fime me in app/views/welcome/index.html.slim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
get 'welcome/index' | |
root to: 'welcome#index' | |
end |