Skip to content

Commit

Permalink
fix: missing callback ActionNotFound exception
Browse files Browse the repository at this point in the history
missing callback actions is the new default in rails. We're ignoring this default in production environments, but keeping it enabled in dev and test so that we can fix errors as they arise.

here's what the error looks like
```
15:30:41 web.1  | AbstractController::ActionNotFound - The edit action could not be found for the :set_transfer_request
15:30:41 web.1  | callback on TransferRequestsController, but it is listed in the controller's
15:30:41 web.1  | :only option.
15:30:41 web.1  | Raising for missing callback actions is a new default in Rails 7.1, if you'd
15:30:41 web.1  | like to turn this off you can delete the option from the environment configurations
15:30:41 web.1  | or set `config.action_controller.raise_on_missing_callback_actions` to `false`.
```
  • Loading branch information
jxjj committed Jun 4, 2024
1 parent e2e0bf6 commit 1e14917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/transfer_requests_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class TransferRequestsController < ApplicationController
before_action :set_transfer_request,
only: %i[edit update destroy show confirm]
only: %i[destroy confirm]
def index
@transfer_requests_to =
TransferRequest.where(to_group_id: current_user.id)
Expand Down

0 comments on commit 1e14917

Please sign in to comment.