Skip to content

Commit

Permalink
Closes #684. Fix bulk actions in users tab.
Browse files Browse the repository at this point in the history
Includes test for added bulk_modify route.
  • Loading branch information
baadshah02 authored and jerboaa committed Mar 12, 2012
1 parent 4b91366 commit 873b368
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/students/index.html.erb
Expand Up @@ -47,7 +47,7 @@ document.observe("dom:loaded", function(){
<div class="colsLeftHeavy">

<div class="wrapLeft">
<%= form_tag :url => {:action => "bulk_modify"},
<%= form_tag bulk_modify_students_path(),
:before => "before_form_submit();",
:complete => "after_form_submit();",
:remote => true do %>
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Expand Up @@ -258,6 +258,7 @@

resources :students do
collection do
post 'bulk_modify'
post 'populate'
get 'manage'
get 'download_student_list'
Expand Down
5 changes: 5 additions & 0 deletions test/functional/students_controller_test.rb
Expand Up @@ -94,6 +94,11 @@ def setup
@section = Section.make
end

should "recognize action to bulk modify for a student" do
assert_recognizes( {:action => "bulk_modify", :controller => "students"},
{:path => "students/bulk_modify", :method => "post"} )
end

should "be able to edit a student" do
get_as @admin,
:edit,
Expand Down

0 comments on commit 873b368

Please sign in to comment.