sample_rails_tailwind/app/views/layouts/application.html.erb

28 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-12-29 17:12:54 +08:00
<!DOCTYPE html>
<html lang="en">
2024-12-29 17:12:54 +08:00
<head>
2024-12-30 13:23:22 +08:00
<!-- <title><%#= content_for(:title) || "Sample App" %></title>-->
<title><%= full_title(yield(:title)) %></title>
<%= render 'layouts/rails_default' %>
<%= render 'layouts/shim' %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
2024-12-29 17:12:54 +08:00
</head>
<body>
<%= render 'layouts/header' %>
2024-12-30 13:23:22 +08:00
<div class="container">
<% flash.each do |message_type, message| %>
<%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
<!-- <div class="alert alert-<%#= message_type %>"><%#= message %></div>-->
<% end %>
2024-12-30 13:23:22 +08:00
<%= yield %>
<%= render 'layouts/footer' %>
<%#= debug(params) if Rails.env.development? %>
<%= debug(params.to_yaml) if Rails.env.development? %>
<%= debug(session) if Rails.env.development? %>
<%= debug(Time.now) if Rails.env.development? %>
2024-12-30 13:23:22 +08:00
</div>
2024-12-29 17:12:54 +08:00
</body>
</html>