问题:show的id方面

#####1.首先建立了一个about页面。例子为topics/about.html.erb get ‘topics/about’ => ‘topics#about’这样action会找def show get ‘about/topics’ => ‘topics#about’这样就会work

#####默认去找id=about的页面.

方法一

config/routes.rb resources :topics do

app/views/topics/about.html.erb

rails g controller about index

app/views/topics/index.html.erb