Created
September 6, 2013 08:23
-
-
Save tommyblue/6460998 to your computer and use it in GitHub Desktop.
This file contains 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> | |
<title>MyApp</title> | |
<%= stylesheet_link_tag "application", media: "all" %> | |
<%= yield :stylesheets %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
<%= yield %> | |
<%= javascript_include_tag "application" %> | |
<%= yield :javascripts %> | |
</body> | |
</html> |
This file contains 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
<table> | |
[...] | |
</table> | |
<!-- my content --> | |
<% content_for :javascripts do %> | |
<%= javascript_include_tag "custom_js" %> | |
<script> | |
// put js here | |
</script> | |
<% end %> | |
<% content_for :stylesheets do %> | |
<%= stylesheet_link_tag "custom_css_file" %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment