正直に言うと、私はすでにすべてを「新しい」と呼ぶと、レールが複数形に減少するように苦しんでいます。
NameError in News#index
Showing app/views/news/index.html.erb where line #24 raised:
undefined local variable or method `new_new_path' for #<ActionView::Base:0xf711a204>
Extracted source (around line #24):
21:
22:
23:
24: <%= link_to 'New new', new_new_path %>
RAILS_ROOT: /home/tenkoff/rails/test
Application Trace | Framework Trace | Full Trace
app/views/news/index.html.erb:24
app/controllers/news_controller.rb:7:in `index'
別の名前を付けてルートでラップしようとすると、次のようになります
script/generate scaffold post title:string
そして、ルートに以下を書きます:
map.resources :lenta, :controller => :posts
すべてのリンクは「/ posts /」になります
これをすべて征服する方法は?