diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-11-07 16:01:47 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-18 14:03:50 +0000 |
commit | 3250f00a401ed1fe60b7446b078bac86dbac547b (patch) | |
tree | 007e2ada0195608e86d15bc3c4c7ac13fd50d308 | |
parent | 47d7d8aec346cc83f3a8f7e301d86d3afe2ebb62 (diff) |
RESTful route for clearing a bounce message
-rw-r--r-- | app/views/admin_user/show.html.erb | 2 | ||||
-rw-r--r-- | config/routes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin_user/show.html.erb b/app/views/admin_user/show.html.erb index 974967982..262e069a5 100644 --- a/app/views/admin_user/show.html.erb +++ b/app/views/admin_user/show.html.erb @@ -38,7 +38,7 @@ <%=h admin_value(value)%> <% end %> <% if column_name == 'email_bounced_at' && !@admin_user.email_bounced_at.nil? %> - <%= form_tag admin_user_clear_bounce_path(@admin_user), :class => "form form-inline" do %> + <%= form_tag clear_bounce_admin_user_path(@admin_user), :class => "form form-inline" do %> <input type="submit" name="action" value="Clear bounce" class="btn btn-info"> <% end %> <% end %> diff --git a/config/routes.rb b/config/routes.rb index 8b1092b90..47aec0cd2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -276,9 +276,9 @@ Alaveteli::Application.routes.draw do :except => [:new, :create, :destroy] do get 'banned', :on => :collection get 'show_bounce_message', :on => :member + post 'clear_bounce', :on => :member end end - match '/admin/user/clear_bounce/:id' => 'admin_user#clear_bounce', :as => :admin_user_clear_bounce match '/admin/user/destroy_track' => 'admin_user#destroy_track', :as => :admin_user_destroy_track match '/admin/user/login_as/:id' => 'admin_user#login_as', :as => :admin_user_login_as match '/admin/user/clear_profile_photo/:id' => 'admin_user#clear_profile_photo', :as => :admin_clear_profile_photo |