基本的な Ruby on Rails サーバーのセットアップがあります。
routes.rb には次のものがあります。
ActionController::Routing::Routes.draw do |map|
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
root :to => "home#index"
end
私の controller/application_controller.rb には、次のものがあります。
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
protect_from_forgery # See ActionController::RequestForgeryProtection for details
end
最後に、いくつかの基本的な HTML を含む /app/views/posts/index.html.erb を作成しました。ページでその HTML ファイルを参照するにはどうすればよいですか。