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
ActionController::RoutingError (undefined local variable or method `type' for WashOut::Param:Class):
app/controllers/api_controller.rb:8:in `<class:ApiController>'
app/controllers/api_controller.rb:1:in `<top (required)>
BintraMongo::Application.routes.drawdo# The priority is based upon order of creation:# first created -> highest priority.root:to=>"home#index"wash_out:apimatch'/test',:to=>'foo#test'resources:usersdevise_for:usermatch':controller(/:action(/:id))'end
The controller:
classApiController < ApplicationControllerincludeWashOut::SOAPsoap_action"authenticate",:args=>{:login=>:string,:password=>:string,:comment=>:string},:return=>Userdefauthenticate# find user by params[:login] and params[:password]putsparamsendend
Would it be possible to construct the definition for this hash automatically? So suppose a User has the fields "username" and "emailaddress" the returntype would look like
There are a lot of pros and cons. I'm not sure about it actually. We do have #21 issue with similar request. I'll take your proposal into account while working on it.
The error in
/api/wsdl
:The controller:
Versions (full list):
The text was updated successfully, but these errors were encountered: