refinery/refinerycms · error · RuntimeError

Please override #{singular_name}_params with your desired pa

Error message

Please override #{singular_name}_params with your desired parameter security.

What it means

Error "Please override #{singular_name}_params with your desired parameter security." thrown in refinery/refinerycms.

Source

Thrown at core/lib/refinery/crud.rb:215

                       :object => @#{singular_name},
                       :include_object_name => true
                     }
            else
              render :action => action
            end
          end

          # Returns a weighted set of results based on the query specified by the user.
          def search_all_#{plural_name}
            # First find normal results.
            find_all_#{plural_name}(#{options[:search_conditions].inspect})

            # Now get weighted results by running the query against the results already found.
            @#{plural_name} = @#{plural_name}.with_query(params[:search])
          end

          def #{singular_name}_params
            raise "Please override #{singular_name}_params with your desired parameter security."
          end

          # Ensure all methods are protected so that they should only be called
          # from within the current controller.
          protected :find_#{singular_name},
                    :find_#{singular_name}_scope,
                    :find_all_#{plural_name},
                    :paginate_all_#{plural_name},
                    :paginate_per_page,
                    :render_partial_response?,
                    :search_all_#{plural_name},
                    :#{singular_name}_params,
                    :redirect_url,
                    :create_or_update_successful,
                    :create_or_update_unsuccessful,
                    :merge_position_into_params!
        RUBY

View on GitHub (pinned to 34438aae76)

When it happens

Trigger: Thrown at core/lib/refinery/crud.rb:215 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of refinery/refinerycms@34438aae76 (2026-08-23). Data as JSON: /api/errors/ba73dc53a770eade. Report an issue: GitHub.