0
说我有这对我的routes.rb:Rails路由问题:如何将哈希属性传递给生成的资源?
resources :accounts
这给了我,除其他事项外:
new_account GET /account/new
我需要生成此(例如)“/帐号/新#测试“
如何将”#test“传递给new_account_path()
?
说我有这对我的routes.rb:Rails路由问题:如何将哈希属性传递给生成的资源?
resources :accounts
这给了我,除其他事项外:
new_account GET /account/new
我需要生成此(例如)“/帐号/新#测试“
如何将”#test“传递给new_account_path()
?
这应该做的伎俩:
new_account_path(:anchor => "test")
#/account/new#test