respond-to
Can I do a wildcard with 'responds-to format' in Rails3?
Consider the following code: respond_to do |format| format.js{ render :layout => false } format.xml { head :ok }[详细]
2023-02-19 09:15 分类:问答AbstractController::DoubleRenderError that shouldn't be
I\'ve been getting the following error when I hit this destroy method in a my User controller. AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action[详细]
2023-02-19 04:30 分类:问答What does `:location => ...` and `head :ok` mean in the 'respond_to' format statement?
I am using Ruby on Rails 3 and I would like to know what the :location => ... and head :ok statements mean in following code, how they work and how I can\\should use those.[详细]
2023-02-14 23:43 分类:问答Ruby 1.9.2 Object.respond_to? :hello && Object.hello gives error, why?
While stepping through code today, I noticed something unexpected.This statement:开发者_开发问答[详细]
2023-02-13 08:10 分类:问答Controller changes format on variables when publishing
I am a newbie to ROR but catching on quickly. I have been working on this problem for a couple of hours now and it seems like a bug. I does not make any sense.[详细]
2023-02-12 07:31 分类:问答respond_to not working with format.js if format.html is present
When using respond_to, my AJAX call only invokes the javascript response if the HTML response isn\'t present.[详细]
2023-02-07 07:18 分类:问答How do I pass layout false inside respond_to block in Rails?
I\'m trying to 开发者_StackOverflow中文版figure out how to make this work. Here is my code, which is not working right now:[详细]
2023-02-05 13:30 分类:问答override to_xml to limit fields returned
using ruby 1.9.2 and rails 3, i would like to limit the fields returned when a record is accessed as json or xml (the only two formats allowed).[详细]
2023-02-04 11:30 分类:问答Rails3 and Respond_with problem
I have an application, on which I have two user interfaces. The first one is for normal users and the second one is for iphone users.[详细]
2023-02-04 05:52 分类:问答Rails route for non-resource for csv
I have a method called \"revisions\", and I want to be able use the same logic but output to csv.I think I\'d like to use the FasterCSV gem.What I need is to what to add to my routes in order to get a[详细]
2023-01-27 17:38 分类:问答