{"action":"created","issue":{"url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/101","repository_url":"https://api.github.com/repos/mkhairi/materialize-sass","labels_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/101/comments","events_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/101/events","html_url":"https://github.com/mkhairi/materialize-sass/issues/101","id":159632654,"number":101,"title":"ActionController::RoutingError (No route matches [GET] \"/fonts/roboto/Roboto-Light.ttf\"):","user":{"login":"tdoganay","id":19857472,"avatar_url":"https://avatars.githubusercontent.com/u/19857472?v=3","gravatar_id":"","url":"https://api.github.com/users/tdoganay","html_url":"https://github.com/tdoganay","followers_url":"https://api.github.com/users/tdoganay/followers","following_url":"https://api.github.com/users/tdoganay/following{/other_user}","gists_url":"https://api.github.com/users/tdoganay/gists{/gist_id}","starred_url":"https://api.github.com/users/tdoganay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdoganay/subscriptions","organizations_url":"https://api.github.com/users/tdoganay/orgs","repos_url":"https://api.github.com/users/tdoganay/repos","events_url":"https://api.github.com/users/tdoganay/events{/privacy}","received_events_url":"https://api.github.com/users/tdoganay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-10T13:15:34Z","updated_at":"2016-06-12T05:02:26Z","closed_at":null,"body":"I get this error when my server is trying to get any of the roboto fonts. I've tried changing the src urls in _roboto.scss, putting all the fonts straight in the assets folder, and adding \r\n```\r\nconfig.assets.enabled = true  \r\nconfig.assets.paths << \"#{Rails.root}/app/assets/fonts/roboto\" \r\n```\r\nto my application.rb file. Nothing gets it to work.\r\n\r\nMy index.html.slim file:\r\n```\r\ndoctype html\r\nhtml\r\n\r\nhead\r\n  meta[name=\"viewport\" content=\"width=device-width, initial-scale=1\"]\r\n  link[type=\"text/css\" rel=\"stylesheet\" href=\"assets/materialize.css\" media=\"screen,projection\"]\r\n  link[type=\"text/css\" rel=\"stylesheet\" href=\"assets/main.css.scss\"]\r\n\r\nbody\r\n\r\n.intro.deep-orange.lighten-2.z-depth-1\r\n  h1.grey-text.text-lighten-5\r\n    | Homepage\r\n  h5.grey.lighten-4.grey-text.text-darken-1\r\n    | Learn something new\r\n\r\n- if user_signed_in?\r\n  h1\r\n    | Welcome, \r\n    = current_user.first_name\r\n    | !\r\n- else\r\n  h1\r\n    | Welcome!\r\n- if !user_signed_in?\r\n  p\r\n    font[size=\"3\"]\r\n      | New? Sign up!: \r\n    = link_to 'New User', new_user_registration_path\r\n  br\r\np\r\n  font[size=\"3\"]\r\n    | Go to venues: \r\n  = link_to 'Venues',  'resources'\r\nbr\r\nbr\r\nul\r\n  .row\r\n  .col.s12.cards-container\r\n    -Event.all.each do |event|\r\n        =render 'card', event: event \r\n\r\n\r\nscript[type=\"text/javascript\" src=\"https://code.jquery.com/jquery-2.1.1.min.js\"]\r\nscript[type=\"text/javascript\" src=\"assets/materialize.min.js\"]\r\n```\r\nMy Gemfile:\r\n```\r\nsource 'https://rubygems.org'\r\n\r\n\r\n# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'\r\ngem 'rails', '4.2.6'\r\n# Use mysql as the database for Active Record\r\ngem 'mysql2', '>= 0.3.13', '< 0.5'\r\n# Use SCSS for stylesheets\r\ngem 'sass-rails', '~> 5.0'\r\n# Use Uglifier as compressor for JavaScript assets\r\ngem 'uglifier', '>= 1.3.0'\r\n# Use CoffeeScript for .coffee assets and views\r\ngem 'coffee-rails', '~> 4.1.0'\r\n# See https://github.com/rails/execjs#readme for more supported runtimes\r\n# gem 'therubyracer', platforms: :ruby\r\n\r\n# Use jquery as the JavaScript library\r\ngem 'jquery-rails'\r\n# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks\r\ngem 'turbolinks'\r\n# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder\r\ngem 'jbuilder', '~> 1.2'\r\n# bundle exec rake doc:rails generates the API under doc/api.\r\ngem 'sdoc', '~> 0.4.0', group: :doc\r\n\r\ngem 'yaml_db'\r\n\r\ngem 'materialize-sass'\r\n\r\ngem 'coffee-script-source', '1.8.0'\r\n\r\ngem 'bookable', '~> 0.0.52'\r\n\r\ngem 'responders', '~> 2.0'\r\n\r\ngem 'devise'\r\n\r\ngem 'omniauth-facebook'\r\n\r\ngem \"omniauth-google-oauth2\"\r\n\r\ngem 'mail_form', '~> 1.5', '>= 1.5.1'\r\n\r\ngem 'sendgrid', '~> 1.2', '>= 1.2.4'\r\n\r\ngem 'aws-sdk', '<2.0'\r\n\r\ngem 'paperclip', :git=> 'https://github.com/thoughtbot/paperclip', :ref => '523bd46c768226893f23889079a7aa9c73b57d68'\r\n\r\ngem \"cocaine\", '~> 0.5.8'\r\n\r\ngem 'slim-rails'\r\n# Use ActiveModel has_secure_password\r\n# gem 'bcrypt', '~> 3.1.7'\r\n\r\n# Use Unicorn as the app server\r\n# gem 'unicorn'\r\n\r\n# Use Capistrano for deployment\r\n# gem 'capistrano-rails', group: :development\r\n\r\ngroup :development, :test do\r\n  # Call 'byebug' anywhere in the code to stop execution and get a debugger console\r\n  gem 'byebug'\r\nend\r\n\r\ngroup :development do\r\n  # Access an IRB console on exception pages or by using <%= console %> in views\r\n  gem 'web-console', '~> 2.0'\r\nend\r\n\r\n# Windows does not include zoneinfo files, so bundle the tzinfo-data gem\r\ngem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]\r\n```\r\nMy assets folder:\r\n```\r\nassets/\r\n  |--fonts/\r\n  |  |--roboto/\r\n  |   |   |--roboto fonts\r\n  |\r\n  |--images/\r\n  |  |--images\r\n  |\r\n  |--javascripts/\r\n  |  |--materialize.min.js\r\n  |  |--application.js\r\n  |\r\n  |--stylesheets/\r\n  |   |--components/\r\n  |   |  |--materialize components\r\n  |   |--application.css.scss\r\n  |   |--main.css.scss\r\n  |   |--materialize.scss\r\n```\r\nThanks for the help.\r\n"},"comment":{"url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/comments/225410386","html_url":"https://github.com/mkhairi/materialize-sass/issues/101#issuecomment-225410386","issue_url":"https://api.github.com/repos/mkhairi/materialize-sass/issues/101","id":225410386,"user":{"login":"rubendinho","id":12505660,"avatar_url":"https://avatars.githubusercontent.com/u/12505660?v=3","gravatar_id":"","url":"https://api.github.com/users/rubendinho","html_url":"https://github.com/rubendinho","followers_url":"https://api.github.com/users/rubendinho/followers","following_url":"https://api.github.com/users/rubendinho/following{/other_user}","gists_url":"https://api.github.com/users/rubendinho/gists{/gist_id}","starred_url":"https://api.github.com/users/rubendinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubendinho/subscriptions","organizations_url":"https://api.github.com/users/rubendinho/orgs","repos_url":"https://api.github.com/users/rubendinho/repos","events_url":"https://api.github.com/users/rubendinho/events{/privacy}","received_events_url":"https://api.github.com/users/rubendinho/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T05:02:26Z","updated_at":"2016-06-12T05:02:26Z","body":"Are you getting errors with any other components?  This particular error is most likely due to the way you're adding the font path.  You can see what the paths are actually being captured by the asset pipeline by running this in Rails Console `Rails.application.config.assets.paths` - \r\n\r\nAlso did importing it directly in the application.scss file not work? \r\n\r\n `@import \"materialize/components/roboto\";` - to add only the fonts (not 100% sure if this alone will work)\r\n `@import \"materialize\";` -to add everything\r\n"}}
{"actor":{"display_login":"rubendinho"}}