0
由於將我的Rails應用程序從JQueryMobile 1.0.1升級到1.1.0,我的link_to與以下方法不同:get在iPhone Safari上不再工作。Rails link_to和jQuery Mobile 1.1.0不能在iPhone上工作
說i'm上/個人資料頁,並有下面的代碼:
=link_to 'Videos', videos_path(@video), :method => :post
在源檢查我可以看到,Rails會正確地錨標記FE:/視頻/ 9
但是,當我點擊此鏈接iPhone Safari瀏覽器,我收到了服務器錯誤:
Started POST "/profile" for 10.0.0.7 at 2012-04-23 17:51:16 +0200
ActionController::RoutingError (No route matches [POST] "/profile/9"):
「曲線」是當前頁面的URL和的link_to標記指向「videos_path」,這樣反而讓後到的視頻/我得到發佈到當前網址的個人資料/'
使用jqm 1.0.1鏈接正在處理筆記本電腦和iPhone Safari 由於jqm 1.1.0鏈接正在使用筆記本電腦,但不在iPhone Safari上使用。
我是否錯過了一些像data-method這樣的新屬性?