class Hanami::Routes::MissingActionError
Error raised when no action could be found in an app or slice container for the key given in a routes file.
@api public @since 2.0.0
Public Class Methods
new(action_key, slice)
click to toggle source
@api private
Calls superclass method
# File lib/hanami/routes.rb, line 36 def initialize(action_key, slice) action_path = action_key.gsub(CONTAINER_KEY_DELIMITER, PATH_DELIMITER) action_constant = slice.inflector.camelize( "#{slice.inflector.underscore(slice.namespace.to_s)}#{PATH_DELIMITER}#{action_path}" ) action_file = slice.root.join("#{action_path}#{RB_EXT}") super(<<~MSG) Could not find action with key #{action_key.inspect} in #{slice} To fix this, define the action class #{action_constant} in #{action_file} MSG end