<%= f.label :current_password %>
(we need your current password to confirm your changes)
+
<%= f.label :current_password %>
<%= f.password_field :current_password %>
-
<%= f.submit "Update" %>
<% end %>
-
-
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index 817f12ea..3264bcd9 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -109,7 +109,6 @@ Devise.setup do |config|
# Turn scoped views on. Before rendering "sessions/new", it will first check for
# "users/sessions/new". It's turned off by default because it's slower if you
# are using only default views.
- # config.scoped_views = true
# Configure the default scope given to Warden. By default it's the first
# devise role declared in your routes.
diff --git a/config/routes.rb b/config/routes.rb
index 94afbd40..9cf39f7f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,8 @@
Orbit::Application.routes.draw do
- devise_for :users
+ devise_for :users do
+ match "/users_passwd" => "desktop/registrations#update", :as => :users_passwd, :via => :put
+ end
+
mount Resque::Server, :at => "/admin/resque"
# routes for sinatra app