iFrame中的RoutingError

当我在我的视图中放置一个iFrame时,我搭建了一个测试应用程序并遇到了路由错误:

这是我添加iFrame的节目模板:

意见/酒吧/ show.html.erb:

Body:

|

我正在调用这样的页面:

 http://localhost:3000/bars/1 

页面显示正确。 但页面内的iFrame说明了这一点:

 Routing Error No route matches "/bars/%E2%80%9Chttp://www.yahoo.com%E2%80%9D" with {:method=>:get} 

我没有对默认值中的routes.rb做任何更改:

 ActionController::Routing::Routes.draw do |map| map.resources :bars map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end 

你没有使用正确的双引号字符,这是“