Skip to content
Browse files

Renaming scan_processed to upload_and_mail

  • Loading branch information...
1 parent 3761906 commit 4e4ec358f83ebf5ff7fae71d95ec3ccf2bee3fd4 @jherrm committed
View
4 scanbooth_web/app/controllers/users_controller.rb
@@ -37,8 +37,8 @@ def edit
@user = User.find(params[:id])
end
- # GET /users/1/scan_processed
- def scan_processed
+ # GET /users/1/upload_and_mail
+ def upload_and_mail
@user = User.find(params[:id])
@user.async_upload_model
end
View
2 scanbooth_web/app/views/users/index.html.erb
@@ -9,6 +9,7 @@
<th>External Download Id</th>
<th>Printed</th>
<th>Mailed</th>
+ <th>Actions</th>
<th></th>
<th></th>
<th></th>
@@ -26,6 +27,7 @@
<td><%= link_to 'Show', user %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <td><%= link_to 'Upload and Mail', upload_and_mail_user_path(user) %></td>
</tr>
<% end %>
</table>
View
2 scanbooth_web/config/routes.rb
@@ -9,7 +9,7 @@
resources :users do
member do
- get 'scan_processed'
+ get 'upload_and_mail'
end
end

0 comments on commit 4e4ec35

Please sign in to comment.
Something went wrong with that request. Please try again.