1.restful
   get  查询
   post 新建
   put  修改
   delete 删除
2.root path
  root to: ‘xxx/xxx’(文件路径)
3.match路径
  match ‘xxx/xxx’(http路径名), to: ‘xxx#xxx’(文件路径), via: ‘get’
4.接口
  render json: {
    key: value,
    ……
  }
5.查看
  bunle exec rake routes
  过滤想要的
  undle exec rake routes | grep “xxx”