このエラーが発生しました:
undefined method `test_path' for #<#<Class:0x4022a00>:0x4028ee0>
このリンクを作成しました:
<%= link_to "Alex Link", test_path(@test) %>
そして、このコントローラーを作成しました:test_controller.rb
class TestController < ApplicationController
def test
end
end
そして、これをroutes.rbに追加しました
root :to => 'test_path#hello'
どこで私は間違えましたか?
ルビーコントローラーを手でルーティングする方法を学ぼうとしています。