繁体   English   中英

使用Ruby on Rails创建Web服务时出错

[英]getting error while creating Web services with Ruby on Rails

在Ruby on Rails上创建Web服务时出错。

我按照什么都中提到的步骤

使用rails server启动rails server命令后,当我点击http://localhost:3000/hello_message/wsdl ,出现了以下错误:

ActionController :: RoutingError(没有路由与[GET] / hello message / wsdl匹配)

route.rb:

Rails.application.routes.draw do 
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html 
end

该教程来自2008年,我不太确定,但这也许可以帮助您修复它

添加resources :hello_messagesget '/hello_messages/wsdl' => 'hello_messages#hello_messages'

这应该在Rails.application.routes.draw do内部

但我建议您寻找更多最新的教程

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM