As we saw in the recipe, we can see what action the Ajax control is attempting to call by looking at our web server log.But since it’s making a POST, we can’t see the parameters in the log.How do you know what parameters an autogenerated form is expecting without reading through piles of source code?What I did was to create an action with the name that I saw in the logs that looked like the following:
#从日志中看不到传递的参数,可以这样写
def set_contact_name
raise params.inspect
end
When I submitted the form, I saw the Rails error message with a list of the submitted parameters at the top.
分享到:
相关推荐
From the latest Ajax effects to time-saving automation tips for your development process, "Rails Recipes" will show you how the experts have already solved the problems you have. Use generators to ...
rails2-sample good book
Ajax-Rails-4-AJAX-modal-form-render-JS-response-as-table-row.zip,rails 4 ajax模式表单将js响应呈现为表行,ajax代表异步javascript和xml。它是多种web技术的集合,包括html、css、json、xml和javascript。它用于...
Ajax-Rails-4-AJAX-Form.zip,rails 4 ajax表单示例,ajax代表异步javascript和xml。它是多种web技术的集合,包括html、css、json、xml和javascript。它用于创建动态网页,其中网页的小部分在不重新加载网页的情况下...
rails3-railsconf2010
Ruby on Rails Tutorial - Learn Web Development with Rails 3rd
Rails进行敏捷Web开发(所有版本的源码rails3.0-4.0) 3.0,3.1,3.2,4.0
rails-dev-box, 面向 Ruby on Rails 核心开发的虚拟机 用于 Ruby on Rails 核心开发的虚拟机简介注意:这个虚拟机不是为 Rails 应用程序开发而设计的,只是为。 这个项目自动设置开发环境,以便在 Ruby on Rails ...
What You Will Learn Use the Ruby on Rails web development framework ... Apply a test-driven development approach to your Rails-based web applications Discover many Rails secrets and tips
基于Ubuntu Nginx Mongrel Mysql部署rails monit-5.0
Agile Web Development with Rails 1-14节_ppt(老师发的修正版)
rails-rail-in 用于查找印度铁路信息,例如火车列表、车站列表、路线、票价、PNR 状态、座位可用性等。 安装 要使用 Bundler 安装,请获取最新的稳定版本: gem 'rails-rail-in' , '~> 1.0.0' 要通过 Rubygems ...
rails3-mongoid-devise, 示例 Rails 3.2应用,带有数据 Mongoid,用于验证 Rails 4.1有关设计的Rails 4.1示例应用程序,请参见:rails设计有一个用于设计的教程:Rails 设计教程。类似示例和教程这是来自 RailsApps...
From the latest Ajax effects to time-saving automation tips for your development process, "Rails Recipes" will show you how the experts have already solved the problems you have. Use generators to ...
todo-rails4-angularjs, Rails 4和AngularJS集成的展示 Rails 4和AngularJS集成的展示这是一个待办事项列表管理应用程序,用 Rails 4和AngularJS编写。 任务支持CRUD操作以及drag&拖放排序和通过弹出式日历设置的...
Fueled by significant benefits and an impressive portfolio of real-world applications already in production, Rails is destined to continue making significant inroads in coming years. Each new Rails ...
rails-angular-postgres-and-bootstrap-second-edition 英文原版
顾名思义,就是讲rails的小技巧,给你上rails的大餐,都是大牛们写的文章,对于想掌握常用技巧的开发者很有帮助
Rails Recipes Final.pdf