diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4e94dec..b71a535 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -109,7 +109,15 @@ if(errors.length > 0) { errors[0].focus(); } else { - $.post('<%= user_session_path :format => "json" %>', $(this).serialize(), function(data) { + $.post('<%= user_session_path :format => "json" %>', { + 'remote' : true, + 'commit' : $('#user_existing_submit').val(), + 'utf8' : '✓', + 'user' : { + 'email' : $('#user_email').val(), + 'password' : $('#user_password').val() + } + }, function(data) { }); } } else if($(this).data('state') === 'user_forgot_password') { diff --git a/app/views/main/_combo_form.html.erb b/app/views/main/_combo_form.html.erb index 56cd5ba..9d1a1a2 100644 --- a/app/views/main/_combo_form.html.erb +++ b/app/views/main/_combo_form.html.erb @@ -24,7 +24,7 @@ diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index f8ea3a4..bc2557a 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -124,7 +124,7 @@ Devise.setup do |config| # access, but formats like :xml or :json, should return 401. # If you have any extra navigational formats, like :iphone or :mobile, you # should add them to the navigational formats lists. Default is [:html] - config.navigational_formats = [:html, :json] + # config.navigational_formats = [:html, :iphone] # ==> Warden configuration # If you want to use other strategies, that are not (yet) supported by Devise,