awestruct / web-editor

A web based editor for awestruct projects
8 stars 6 forks source link

change_set API not working #48

Closed wesbos closed 11 years ago

wesbos commented 11 years ago

When I try POST to the API with the param name I get this error. Any idea?

ArgumentError - wrong number of arguments (2 for 1):
    /Volumes/Macintosh HD/wesbos/Dropbox/redhat/web-editor/helpers/repository.rb:115:in `create_branch'
    /Volumes/Macintosh HD/wesbos/Dropbox/redhat/web-editor/public_app.rb:59:in `block in <class:PublicApp>'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `call'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `block in compile!'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `[]'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (3 levels) in route!'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:966:in `route_eval'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (2 levels) in route!'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:987:in `block in process_route'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `catch'
    /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `process_route'
LightGuard commented 11 years ago

Fixed with 20374ac

On Thu, Jul 18, 2013 at 10:35 AM, Wes Bos notifications@github.com wrote:

When I try POST to the API with the param name I get this error. Any idea?

ArgumentError - wrong number of arguments (2 for 1): /Volumes/Macintosh HD/wesbos/Dropbox/redhat/web-editor/helpers/repository.rb:115:in create_branch' /Volumes/Macintosh HD/wesbos/Dropbox/redhat/web-editor/public_app.rb:59:inblock in class:PublicApp' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in call' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:inblock in compile!' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in []' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:inblock (3 levels) in route!' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:966:in route_eval' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:inblock (2 levels) in route!' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:987:in block in process_route' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:incatch' /Users/wesbos/.rvm/gems/ruby-1.9.3-p429@sinatra/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `process_route'

— Reply to this email directly or view it on GitHubhttps://github.com/awestruct/web-editor/issues/48 .

Jason Porter http://en.gravatar.com/lightguardjp