Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AnkurVyas-BTC/d9db266b750076c97c05f16b7daa69a1 to your computer and use it in GitHub Desktop.

Select an option

Save AnkurVyas-BTC/d9db266b750076c97c05f16b7daa69a1 to your computer and use it in GitHub Desktop.
Contents of layouts/application.html.erb
<!-- Path: app/views/layouts/application.html.erb -->
<!DOCTYPE html>
<html>
<head>
<title>RailsReactWebpacker</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
<!-- Following will make the react components availabe to our layout -->
<%= javascript_pack_tag 'application' %>
</head>
<body>
<%= yield %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment