method

array_or_string_for_javascript

rails latest stable - Class: ActionView::Helpers::ScriptaculousHelper

Method deprecated or moved

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

array_or_string_for_javascript(option)
protected

No documentation available.

# File actionpack/lib/action_view/helpers/scriptaculous_helper.rb, line 222
        def array_or_string_for_javascript(option)
          if option.kind_of?(Array)
            "['#{option.join('\',\'')}']"
          elsif !option.nil?
            "'#{option}'"
          end
        end