You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I loaded up a form with a regex validation it seems to work okay, but i see the above error in firebug.
I think somehow FormatWithValidator is instantiated before the v2.rails and v2.rails.params are instantiated.
I worked around it by changing the line to
self.data = %{
v2.rails = {}; v2.rails.params = {}; v2.rails.params['#{args.first}'] = #{data.inspect.gsub(/\A/, '^').gsub(/\z/, '$')};
}
which obviously sucks since it wipes out any existing values, but works okay for me since I only have one validator. I don't know how to fix this properly (maybe a call to some function that checks then instantiates or somehow force v2.rails.js to be interpreted before this instantiation.)
The text was updated successfully, but these errors were encountered:
When I loaded up a form with a regex validation it seems to work okay, but i see the above error in firebug.
I think somehow FormatWithValidator is instantiated before the v2.rails and v2.rails.params are instantiated.
I worked around it by changing the line to
self.data = %{
v2.rails = {}; v2.rails.params = {}; v2.rails.params['#{args.first}'] = #{data.inspect.gsub(/\A/, '^').gsub(/\z/, '$')};
}
which obviously sucks since it wipes out any existing values, but works okay for me since I only have one validator. I don't know how to fix this properly (maybe a call to some function that checks then instantiates or somehow force v2.rails.js to be interpreted before this instantiation.)
The text was updated successfully, but these errors were encountered: