0
我遵循源代碼形式rails3-devise-bootstrap-example以在彈出窗口中獲得我的devise-login-page(通常 - 沒有AJAX - 正常工作)。Rails + Facebox:彈出式窗口不起作用
當我點擊登錄鏈接沒有任何反應。日誌文件告訴我
Started GET "/facebox/fb_login" for 127.0.0.1 at 2014-01-09 19:15:0
Processing by FaceboxController#fb_login as JS
Rendered devise/shared/_links.erb (3.0ms)
Rendered devise/sessions/_new.html.erb (1155.0ms)
Rendered facebox/fb_login.js.erb (1251.0ms)
Completed 200 OK in 1509ms (Views: 1508.0ms | ActiveRecord: 0.0ms)
但是沒有登錄彈出窗口出現。
這裏是我的index.html.erb文件
<%= link_to 'Login', fb_login_path, :remote => true %>
登錄鏈接,開始我fb_login.js文件
$.facebox('<%= escape_javascript(render :partial => 'devise/sessions/new') %>')
,應打開_new.html。 erb看起來像這樣:
<%= simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<div class="form-inputs">
<%= f.input :email, :required => false, :autofocus => true %>
<%= f.input :password, :required => false %>
<%= f.input :remember_me, :as => :boolean if devise_mapping.rememberable? %>
</div>
<div class="form-actions">
<%= f.button :submit, "Sign in" %>
</div>
<% end %>
<%= render "devise/shared/links" %>
但它沒有。什麼地方出了錯?