Skip to content

Commit

Permalink
Generate Payments controller and views
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkar1995 committed Dec 6, 2023
1 parent 5d293cb commit 4362256
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/payment_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class PaymentController < ApplicationController
def index
end
end
2 changes: 2 additions & 0 deletions app/helpers/payment_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module PaymentHelper
end
2 changes: 2 additions & 0 deletions app/views/payment/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Payment#index</h1>
<p>Find me in app/views/payment/index.html.erb</p>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Rails.application.routes.draw do
get 'payment/index'
get 'categories/index'
get 'splash/index'
devise_for :users
Expand Down
8 changes: 8 additions & 0 deletions test/controllers/payment_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require "test_helper"

class PaymentControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get payment_index_url
assert_response :success
end
end

0 comments on commit 4362256

Please sign in to comment.