Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
safir
@safir
Member
NO. 24995 / 2016-02-15

2 Topics / 10 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Rails Web Service 要有 SOAP 的添加哪种好?washout 怎么样? at March 03, 2016

    #9 楼 @safir 发现类型重复用的时候会有重复类型的错误,将重复的类型(非数据库)自定义为 WashOut::Type 然后就能用了,注意 rails 的命名规范,因为前台已有的关系,这货坑了我很久、

  • Rails Web Service 要有 SOAP 的添加哪种好?washout 怎么样? at February 26, 2016

    #8 楼 @safir 我后来在 return 上把需要的类型格式放上去,在 render 上输出相同的格式。。。感觉好傻的样子~

  • Rails Web Service 要有 SOAP 的添加哪种好?washout 怎么样? at February 25, 2016

    哪位大大用过 wash_out 我在 soap action 需要 return Staff 类 在 def 中 用 find_by 找到@staff 然后 render :soap=>[@staff] 但是会报 WashOut::Dispatcher::ProgrammerError (SOAP response used # (which is Staff), in the context where a Hash with key of 'staff_no' was expected.): 如果不对@staff添加 [ ] 那么会报 WashOut::Dispatcher::ProgrammerError (SOAP response tried to use '#' (which is of type Staff), as the value for 'value' (which expects an Array).):

    该如何写 render?

  • Rails Web Service 要有 SOAP 的添加哪种好?washout 怎么样? at February 23, 2016

    #4 楼 @alucardpj 然而要做的是 server。

  • Rails Web Service 要有 SOAP 的添加哪种好?washout 怎么样? at February 23, 2016

    #3 楼 @huacnlee 谢谢,我也搜过只看到一个 wash_out 可用。

  • Rails Web Service 要有 SOAP 的添加哪种好?washout 怎么样? at February 23, 2016

    #1 楼 @nainc 谢谢,o(╯□╰)o

  • 想问一下,Ruby 当中是如何解决 Import 这个问题的? at February 18, 2016

    问个别的问题,rails 的 restful 风格如果需要传 2 个参数才能确定一个资料,要怎么设置 router 和 action? 比如需要一个 id 和一个 flag,是用:member 么?但这样 url 不是会很长? 如果需要一个 year、一个 month、一个 id,资料表中只有 datetime 形式的数据,又该如何?

  • 我想请教几个 Ruby 和 Rails 的问题.希望有人能指点下. at February 15, 2016

    如果资料表中有 3 个主键 user_id、product_id 和 flag 那么需要怎么写联合索引和 unique?

  • 多主键的数据库 at February 15, 2016

    各位大大,我是个小白,如果数据库有 3 个主键 user_id、product_id 和 flag 那么需要怎么写联合索引和 unique?

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English