Skip to content

Country select wrong number of arguments (4 for 0) #3675

@karamosky

Description

@karamosky

Hello i have been facing some troubles with activeadmin in rails 4.1.8. In fact i think that the problem came from formtastic. It considers my country field as country_select automatically. Is there any solution to force formtastic to disable the country select rendering.
Thank you
Here is where it happen

module ActionView

  module Helpers

    module FormOptionsHelper

      # Return select and option tags for the given object and method, using country_options_for_select to generate the list of option tags.

      def country_select(object, method, priority_countries = nil, options = {}, html_options = {})

        InstanceTag.new(object, method, self, options.delete(:object)).to_country_select_tag(priority_countries, options, html_options)

      end

      # Returns a string of option tags for pretty much any country in the world. Supply a country name as +selected+ to

      # have it marked as the selected option tag. You can also supply an array of countries as +priority_countries+, so

      # that they will be listed above the rest of the (long) list.

      #

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions