search for: unknown_key

Displaying 1 result from an estimated 1 matches for "unknown_key".

Did you mean: unknown_keys
2008 Sep 12
1
ArgumentError: Unknown key(s): dependant
...cebooker/lib/facebooker/rails/helpers.rb:589:in `assert_valid_keys'' 585 # We can allow css attributes. 586 FB_ALWAYS_VALID_OPTION_KEYS = [:class, :style] and changed it to : 586 FB_ALWAYS_VALID_OPTION_KEYS = [:class, :style, :dependant] 587 def assert_valid_keys(*valid_keys) 588 unknown_keys = keys - [valid_keys + FB_ALWAYS_VALID_OPTION_KEYS].flatten 589 raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty? 590 end And now I no longer get the error. If anyone has come across this error, or if they know if this change w...