我有一个模型“资产”,在展示页面上,我有这个:
{ :controller 'looks', :action => 'whatever' } %>'looks' 控制器和 'whatever' 动作都存在。
现在,当我进入第二个资产的显示页面并单击测试链接时,我收到此错误:
处理 AssetsController#2 (for 127.0.0.1 at 2009-12-03 17:09:57) [POST] 参数:{"authenticity_token"=>"aLGRq+ZVulWbwC09m1dy7Mj9b9AgSJqkwiS99SLk6uk="} 用户负载 (0.6ms) SELECT * FROM "users " WHERE ("users"."id" = '1') LIMIT 1
ActionController::UnknownAction(没有动作响应2。动作:创建、销毁、索引、新建、接收和显示):/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:在start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in
开始'/usr/lib/ruby/1.8/webrick/server.rb:162 :在开始'start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in
/usr/lib/ruby/1.8/webrick/server.rb:92 :在开始each' /usr/lib/ruby/1.8/webrick/server.rb:92:in
'/usr/lib/ ruby/1.8/webrick/server.rb:23:instart' /usr/lib/ruby/1.8/webrick/server.rb:82:in
start'渲染救援/布局 (not_found)
所以很明显,它把我引向了一个动作,这个动作被命名为我来自哪个节目的asset_id。如果有帮助,我正在使用 authlogic 和 compass gems。我会很感激任何帮助。