Ruby on Rails: wrong number of arguments (3 for 2) -


For some reason I'm getting an error on this method when I'm trying to add a record. The wrong number of specific error arguments is (2 to 2)

  def addrecord res = multizoucord.jocode (param [: street], param [[city], params [: state]) latitude , Lng = res.ll.split (",") Bathroom.create (: name = & gt; Parameters [: Name] ,: Bathroom type => Parameters [: Bathroom type] [: Road],: City => Ultimate [: City],: State => Paraam [[State] ,: Country => Params [: Country],: Post => Params [ Post] ,: lat = & gt; Latitude parameter [: Comment] :: comment => LNG :: Access =: S Source = & gt; 'Skvet' ,: gain = & gt; Param [[Benefits:]) response_to do format | Format.json {Render: None = & gt; True} end end This is an example call ... & gt; Http :. .... / bathroom / addrecord name = Apple% 20Store & amp; Bathroomtype = 1 & amp; Road = one% 20Stockton% 20St & amp; City = San% 20Francisco & amp; State = CA & amp; Country = United% 20States & amp; Posts = 94108 & amp; Enter = 0 more instructions = & amp; Comment = & amp; Benefit = 0   

This request is parametric:

request

parameter: = "1", "bathroom" = & gt; "San Francisco", "Benefits" =>, "0", "Access" => "0", "bathroom type" = 1 = "Gt;" "," Comment "=> "," Country "=> United States "," Directions "=> "," Name "= & gt; Apple Store "," street "=>

What am I missing?

Any help (stockton st "," post "=> gt;" 94108 "," state "= & gt;" CA "}

.

You must first give a location as the parameter, and the rest of the options: <

Try sending it as a string, like this:

  multigocoder.jocode ("# {Parameters [: street}}, # {parameter: City]}, # {params [: state]} ")    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -