写点什么

REST changes in Rails Edge and RADAR

  • 2007-04-03
  • 本文字数:1034 字

    阅读完需:约 3 分钟

The development version of Ruby on Rails, Rails Edge, was updated with a change to the code that handles REST URLs. From the commit message for this change:"

Dropped the use of ; as a separator of non-crud actions on resources and went back to the vanilla slash. It was a neat idea, but lots of the non-crud actions turned out not to be RPC (as the ; was primarily intended to discourage), but legitimate sub-resources, like /parties/recent, which didn’t deserve the uglification of /parties;recent. Further more, the semicolon caused issues with caching and HTTP authentication in Safari. Just Not Worth It [DHH]"

Ryan Daigle gives a succinct overview of what this means:

Whenever you have a custom action route defined in Rails: map.resources :users, :collection => { :filter => :get } the resulting route no longer uses a semi-colon (;) to delimit the custom action: GET /users;filter and instead will use your standard forward-slash (/): GET /users/filter

Dave Thomas (PragDave) also reported these news and offered a thorough explanation of the reasons that made the semicolons seem necessary in the first place. After detailing that it’s only Web Browsers that require hacks like this, he ponders a solution for the problem:

Put the main application logic into a RESTful server. This is where all the CRUD-style access to resources takes place. Then, write a second proxy server. This is an HTTP filter, sitting between dumb browsers and your core resources. When browser-based users need to interact with your resources, they actually connect to this proxy. It then talks REST to your main server, and interprets the RESTful responses back into a form that’s useful on the browser. And this filter doesn’t have to be a dumb presentation layer - there’s nothing to say that it can’t handle additional functionality as well. Things like menus, user preferences, and so on could all sit here.

Since he likens Web Browsers to old 3270 terminals, also referred to as dumb clients, he names this idea “RADAR”: RESTful Application talking to Dumb-Ass Recipients.

2007-04-03 18:22663
用户头像

发布了 117 篇内容, 共 15.8 次阅读, 收获喜欢 0 次。

关注

评论

发布
暂无评论
发现更多内容

TiDB 企业版全新升级,平凯数据库核心特性全解读

PingCAP

数据库 TiDB 平凯数据库

HarmonyOS师资培训:赋能万千开发者,助力鸿蒙生态繁荣

最新动态

Gradle 新功能,你不能不知道

树上有只程序猿

Gradle

众行远,华为携手多家数字教育集团加速培养鸿蒙生态人才

最新动态

大家使用 Sealos 一键部署 Kubernetes 集群

米开朗基杨

MySQL 到 TiDB:vivo 的 Hive Metastore 横向扩展之路

PingCAP

MySQL 数据库 TiDB

目标识别不出来,根据指南配置了环境变量也没有用

矩视智能

深度学习 机器视觉

NFTScan | 10.23~10.29 NFT 市场热点汇总

NFT Research

NFT NFTScan nft工具

我们又更新了一波大厂面经!

王中阳Go

Go 后端 面试题 面经 大厂

轻松理解 Transformers(2):Attention部分

Baihai IDP

人工智能 深度学习 AI Transformer 白海科技

SnailSVN Pro for mac(SVN客户端)v1.10永久激活版

mac

苹果mac Windows软件 SnailSVN SVN客户端工具

Acrobat Pro DC 2023 for mac中文完美破解版

iMac小白

Acrobat Pro DC 2023 Acrobat Pro DC下载 Acrobat Pro DC破解版 Acrobat Pro DC mac

于璠访谈录 | AI 框架应该和而不同?

开源雨林

开源 ai框架 昇思MindSpore AI for Science

TiDB x 汉口银行丨分布式数据库应用实践

PingCAP

MySQL 数据库 分布式 银行 TiDB

内置视图联动查看器,实现数据关联分析

观测云

可观测性 关联分析 #数据分析

打造次世代分析型数据库(八):高效数据导入导出方案

腾讯云大数据

Pixelmator Pro for Mac(图像编辑软件) v3.4.3完美直装版

mac

Pixelmator Pro 苹果mac Windows软件 图像编辑软件

DAPP币安链代币合约质押挖矿系统开发源码

l8l259l3365

TCL实业积极践行ESG理念,绿色设计引领全球

科技热闻

第16期 | GPTSecurity周报

云起无垠

枚举

科技快讯丨浪潮海岳inBuilder荣获两项开源大奖

inBuilder低代码平台

低代码平台技术分享官丨系统集成系列之服务发布

inBuilder低代码平台

集成

外贸独立站怎么运营?零基础小白必看!

九凌网络

Mac修图必备软件Photoshop 2023破解版

iMac小白

photoshop下载 Photoshop2023 Photoshop2023 Mac

Downie 4 for Mac中文完美破解版 支持MacOS14

iMac小白

Downie 4 Mac版 Downie 4下载 Downie 4破解版

REST changes in Rails Edge and RADAR_Ruby_Werner Schuster_InfoQ精选文章