Create Action
add actionsetting / routing
class HelloController < ApplicationController
def index
render plain:"Hello, This 1s Rails sample page!"
end
end解説
最終更新
add actionsetting / routing
class HelloController < ApplicationController
def index
render plain:"Hello, This 1s Rails sample page!"
end
end最終更新
Rails.application.routes.draw do
get "hello/index"
get "hello", to: 'hello#index'
end