Skip to content

@tommyblue /application.html.erb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<!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>
<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
Something went wrong with that request. Please try again.