我有一個模型「資產」,並且在顯示頁面上,我有這樣的:link_to爲什麼不把我帶到我想要的地方?
{:控制器「看起來」,:動作=>「什麼」}%>的「長相」控制器'無論什麼行動都存在。
現在,當我去演出頁第二資產,然後單擊測試環節我得到這個錯誤:
Processing AssetsController#2 (for 127.0.0.1 at 2009-12-03 17:09:57) [POST] Parameters: {"authenticity_token"=>"aLGRq+ZVulWbwC09m1dy7Mj9b9AgSJqkwiS99SLk6uk="} User Load (0.6ms) SELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1
ActionController::UnknownAction (No action responded to 2. Actions: create, destroy, index, new, receive, and show): /usr/lib/ruby/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb:7:in
process' haml (2.3.0) lib/sass/plugin/rack.rb:44:in
call' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in
run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in
start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in
start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach' /usr/lib/ruby/1.8/webrick/server.rb:92:in
start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart' /usr/lib/ruby/1.8/webrick/server.rb:82:in
start'Rendering rescues/layout (not_found)
因此很明顯,它是指導我則名爲我是從哪裏來的任何ASSET_ID其表演動作。如果有幫助,我使用authlogic和羅盤寶石。我會很感激任何幫助。