parent
1e5f2d08e6
commit
d914bcd1dc
@ -0,0 +1 @@
|
||||
ruby-3.1.2
|
@ -0,0 +1,5 @@
|
||||
class MoviesController < ApplicationController
|
||||
def index
|
||||
@movies = ["Iron Man", "Batman"]
|
||||
end
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
module MoviesHelper
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
<h1>The only movies that actually matter</h1>
|
||||
|
||||
<ul>
|
||||
<% @movies.each do |movie| %>
|
||||
<li><%= movie %></li>
|
||||
<% end %>
|
||||
</ul>
|
@ -1,6 +1,3 @@
|
||||
Rails.application.routes.draw do
|
||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
|
||||
# Defines the root path route ("/")
|
||||
# root "articles#index"
|
||||
get "movies" => "movies#index"
|
||||
end
|
||||
|
@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class MoviesControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Reference in new issue