method

action_name

rails latest stable - Class: ActionDispatch::Routing::Mapper::Scoping::Scope

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

action_name(name_prefix, prefix, collection_name, member_name)
public

No documentation available.

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 2221
        def action_name(name_prefix, prefix, collection_name, member_name)
          case scope_level
          when :nested
            [name_prefix, prefix]
          when :collection
            [prefix, name_prefix, collection_name]
          when :new
            [prefix, :new, name_prefix, member_name]
          when :member
            [prefix, name_prefix, member_name]
          when :root
            [name_prefix, collection_name, prefix]
          else
            [name_prefix, member_name, prefix]
          end
        end