php - Rails 相当于 PHP 的 echo ("ok") 是什么?

标签 php ruby-on-rails swfupload

这些使 SWFupload 在 mac 上的 safari 或 firefox 中工作的特殊说明仅适用于 PHP。一些通晓多种语言的程序员可以帮我把它翻译成 Rails 吗?

PHP 版本 this quote is from here

I added echo "OK"; to the end of upload.php and uploadphoto.php and my MAC user can use the uploader with Photopost.

我假设他们的 upload.php 是承载表单的文件。也许 uploadphoto.php 是他们 Controller 中的一个 Action ?

最佳答案

你不需要模板, Controller 可以自己渲染文本:

render :text => "OK"

关于php - Rails 相当于 PHP 的 echo ("ok") 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5185169/

相关文章:

php - 另一个嵌套循环 php + mysql 查询

ruby-on-rails - Rails JSON API 的简单 token 身份验证注销

file - 对于文件 uploader ,您会选择 SWFUpload 还是 Plupload?

javascript - SWFUpload ASP.Net 示例站点不工作?

javascript - Swfupload 在 IE 中突然停止工作(使用 flash 10 和 windows 7)

php - 获取 woocommerce_order_status_completed Hook 上的用户 ID

php - Yii - 如何在管理页面上通过外键/相关键的列进行搜索?

ruby-on-rails - 如何重构此 Ruby 和 Rails 代码?

php - 如何正确地将 DOMDocument->ReplaceChild 与 DOMDocument->getElementById 结合使用?

ruby-on-rails - Rails 3 : Duplicate validation error messages during testing