简体   繁体   English

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

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

Getting error while creating webservices on Ruby on Rails. 在Ruby on Rails上创建Web服务时出错。

I have followed what ever the steps mentioned in this . 我按照什么都中提到的步骤

After starting the Server with rails server command, when I am hitting http://localhost:3000/hello_message/wsdl , it's giving me the error: 使用rails server启动rails server命令后,当我点击http://localhost:3000/hello_message/wsdl ,出现了以下错误:

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

routes.rb: route.rb:

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

That tutorial is from 2008, I'm not quite sure but maybe this could help you to fix it 该教程来自2008年,我不太确定,但这也许可以帮助您修复它

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

This should be inside of Rails.application.routes.draw do 这应该在Rails.application.routes.draw do内部

But I'll recommend you to look for more recent tutorials 但我建议您寻找更多最新的教程

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

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