在 Rails 中,如果您要呈现静态页面,您将使用如下类:
class StaticPagesController < ApplicationController
def home
end
def about
end
end
ApplicationController 如何处理这些函数以产生一个 get 请求?函数处理与函数以 HTTP 动词命名并相应路由时有什么区别?
在 Rails 中,如果您要呈现静态页面,您将使用如下类:
class StaticPagesController < ApplicationController
def home
end
def about
end
end
ApplicationController 如何处理这些函数以产生一个 get 请求?函数处理与函数以 HTTP 动词命名并相应路由时有什么区别?