Getting devise sign_in form into Twitter Bootstrap Modal

前端 未结 2 1092
情深已故
情深已故 2020-12-31 08:04

Okay, so I want to use the twitter bootstrap modal to display the devise sign-in form.

I am basing my code of the wiki article here: https://github.com/plataformatec

相关标签:
2条回答
  • 2020-12-31 08:43

    This is the code that ended up working

    <%= simple_form_for(:user, :url => user_session_path) do |f| %>
    
    0 讨论(0)
  • 2020-12-31 08:47

    Don't use :data => { :dismiss => "modal"}. That should trigger some js function from bootstrap that overrides the form submitting event

    0 讨论(0)
提交回复
热议问题