Skip to content

Commit

Permalink
Remove hello controller
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr committed Oct 23, 2024
1 parent b403fb0 commit d591d7a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/hotsheet/controllers/application.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Application } from "https://unpkg.com/@hotwired/stimulus/dist/stimulus.js";

import HelloController from "./controllers/hello_controller.js";
import EditableAttributeController from "./controllers/editable_attribute_controller.js";

window.Stimulus = Application.start();

Stimulus.register("hello", HelloController)
Stimulus.register("editable-attribute", EditableAttributeController)

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/hotsheet/pages/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<% end %>
</table>
<% else %>
<h1>--- Hotsheet#index ---</h1>
<h1>--- Hotsheet ---</h1>
<p>Welcome to the Hotsheet. Select a model from the sidebar to view the spreadsheet.</p>
<% end %>
2 changes: 1 addition & 1 deletion app/views/layouts/hotsheet/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<%= stylesheet_link_tag "hotsheet/application", media: :all %>
<%= javascript_include_tag "hotsheet/application", "data-turbolinks-track": "reload", type: "module" %>
</head>
<body data-controller="hello">
<body>
<%= render "layouts/hotsheet/sidebar" %>
<main>
<%= yield %>
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

Rails.application.routes.draw do
mount Hotsheet::Engine, at: "admin"
mount Hotsheet::Engine, at: "hotsheet"
root "application#index"
end

0 comments on commit d591d7a

Please sign in to comment.