Skip to content

Instantly share code, notes, and snippets.

@samurairunner
Last active August 29, 2015 14:11
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 samurairunner/48bfad5efcd7d616db23 to your computer and use it in GitHub Desktop.
Save samurairunner/48bfad5efcd7d616db23 to your computer and use it in GitHub Desktop.
Railsのマニフェストファイルを使ったJsとStylesheetの呼び出し ref: http://qiita.com/samurairunner/items/da22eddb64e867b4e145
*= require_self
*= require_tree .
<head>
<%= sylesheet_link_tag "application", media: "all", data-turbolinks-track" => true %>
<%= javascript_include_tag "application", data-turbolinks-track" => true %>
</head>
//= require jquery
//= require jquery_ujs
//= require jquery turbolinks
//= require jquery_tree .
<head>
<%= sylesheet_link_tag "application", media: "all", data-turbolinks-track" => true %>
<%= javascript_include_tag "application", data-turbolinks-track" => true %>
</head>
<%= sylesheet_link_tag "test1/test", media: "all", data-turbolinks-track" => true %>
<%= javascript_include_tag "test2/test", data-turbolinks-track" => true %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment