0
軌道4 + AJAX調用+的Mac OS + Mozilla的AJAX調用在Mozilla Firefox瀏覽器Mac OS中不起作用?
_header.html.erb
<span class="callno"><%= link_to "Sign in", {:controller => "web",:action => "sign_in_user"}, :role => 'button', 'data-toggle' => 'modal', 'data-target' => '#popup_div', :remote => true %></span>
web_controller.rb
def sign_in_user
binding.pry
end
routes.rb
get '/web/sign_in_user', :controller => 'web', :action => "sign_in_user"
我使用的Mac OS和Mozilla瀏覽器中18.02 AJAX調用是行不通的。但如果我正在用windows/unix mozilla檢查它的工作。
我得到這個URL本地主機:3000 /網絡/ sign_in_user在地址欄和::的ActionView在MissingTemplate網絡#sign_in_user
幫助需要的請... – user3410226
請發表您的'routes.rb'for的webcontroller – crispychicken
@crispychicken得到'/web/sign_in_user',:controller =>'web',:action =>「sign_in_user」 – user3410226