写点什么

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:22645
用户头像

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

关注

评论

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

iStat Menus for mac(iStat Menus激活码):轻松掌握mac电脑性能

理理

第一,才够安全!

京东科技开发者

复赛总榜TOP1方案Champion Chasing Boy分享

阿里云天池

Mac菜单栏管理工具:Bartender 5

理理

Springboot中自定义监听器

不在线第一只蜗牛

Java spring Spring Boot

苹果mac电脑剪切板管理神器:Paste for Mac中文版

理理

随着全球制造商的紧缩,全球采购活动以2023年十二月以来最强劲的速度收缩:GEP 全球供应链波动指数

财见

Vidu 全球首发「主体参照」新功能,一键同步角色特征;GPT-4o 实时音频项目负责人离职创业丨 RTE 开发者日报

声网

Xcode性能大飞跃!更快的编译速度,更低的内存占用,为你的创意加速!

理理

IDA Professional for mac 反汇编逆向神器 2024最新破解版

理理

首届云原生编程挑战赛总决赛冠军比赛攻略_greydog.队

阿里云天池

万泰生物用飞书:打造信息交流、业务管理、安全协同三大平台

ToB行业头条

测评通义灵码,如何实现微信表情、 AI 语音笔记等小功能?

阿里云云效

阿里云 云原生 通义灵码

HTTP 客户端:RestClient、WebClient、RestTemplate

FunTester

EMR Spark-SQL性能极致优化揭秘 Native Codegen Framework

阿里云天池

与非网第三届"物联网技术论坛"将于9月18日在线举办

财见

软件测试学习笔记丨Docker 原理分析与使用场景

测试人

Docker 软件测试

解读 GaussDB (for MySQL) 冷热存储分离实现原理

华为云开发者联盟

多种嵌入式系统开发需求阻碍平台工程发挥最大价值

财见

上升4名 科大讯飞上榜2024凯度BrandZ最具价值中国品牌百强榜第39名

财见

苹果mac电脑微信客户端插件WechatTweak:实现了微信的多开和消息防撤回

理理

全面升级的PDF编辑和管理软件:Adobe Acrobat Pro DC 2024中文直装版

理理

掌握市场先机:淘宝API如何助力企业实时洞察商品动态

代码忍者

API 测试 pinduoduo API

vivo首登2024凯度BrandZ最具价值中国品牌100强,科技与人文关怀并重

财见

国产远控软件中,为什么我倾向于选择向日葵?

科技热闻

2024年金九银十最全 Java 面试八股文(真实,高频,有详细答案)

采菊东篱下

Java 面试 #程序员

一文总览 CES 升级新特性,全面了解云上的资源使用

华为云开发者联盟

云监控 ces

桌面运维工具之打印机驱动安装

京东科技开发者

测评通义灵码,如何实现微信表情、 AI 语音笔记等小功能?

阿里巴巴云原生

阿里云 云原生 通义灵码

一文看懂什么是架构

EquatorCoco

架构

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