Skip to content

Commit

Permalink
Generate Reports controller
Browse files Browse the repository at this point in the history
bin/rails generate controller Articles index --skip-routes
  • Loading branch information
zainfathoni committed Oct 5, 2024
1 parent 5710888 commit 4a6df93
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class ReportsController < ApplicationController
def index
end
end
2 changes: 2 additions & 0 deletions app/helpers/reports_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module ReportsHelper
end
2 changes: 2 additions & 0 deletions app/views/reports/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Reports#index</h1>
<p>Find me in app/views/reports/index.html.erb</p>
7 changes: 7 additions & 0 deletions test/controllers/reports_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require "test_helper"

class ReportsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

0 comments on commit 4a6df93

Please sign in to comment.