search for: mime_respond

Displaying 16 results from an estimated 16 matches for "mime_respond".

Did you mean: mime_responds
2008 May 08
5
Simple Generated Component Suddenly Gives Errors
...by/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in `render_without_active_scaffold'' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in `render'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/mime_responds.rb:131:in `send'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/mime_responds.rb:131:in `custom'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/mime_responds.rb:156:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/li...
2008 May 13
0
Problem geting web interface to work
...rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'' #{RAILS_ROOT}/app/controllers/projects_controller.rb:9:in `index'' #{RAILS_ROOT}/app/controllers/projects_controller.rb:9:in `call'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in `custom'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:133:in `call'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:167:in `respond'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_contro...
2009 Jul 08
2
RuntimeError (JPEG marker not found!):
Hi, while generating the PDF file , i am getting following error.. please help for me. RuntimeError (JPEG marker not found!): C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:176:in ` measure_JPEG'' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:174:in ` loop''
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a local variable to my partial. The below code leads to the following error: NameError in Residential_listings#new undefined local variable or method `foo'' for #<ActionView::Base: 0x3fb53f8> I am trying to call the variable ''foo'' in a partial called _attachment.html.erb, which is nested in
2013 Feb 10
0
Nested attributes doesnt get updated
...lib/active_record/transactions.rb:293:in `with_transaction_returning_status'' activerecord (3.1.3) lib/active_record/persistence.rb:161:in `update_attributes'' app/controllers/a_w_requests_controller.rb:107:in `block in update'' actionpack (3.1.3) lib/action_controller/metal/mime_responds.rb:269:in `call'' actionpack (3.1.3) lib/action_controller/metal/mime_responds.rb:269:in `retrieve_response_from_mimes'' actionpack (3.1.3) lib/action_controller/metal/mime_responds.rb:194:in `respond_to'' app/controllers/a_w_requests_controller.rb:106:in `update''...
2008 Apr 13
20
uninitialized constant
Hi guys, I''m part way through a RoR application, for some reason whenever I add new controllers (using scaffold) I get an uninitialized constant [name of controller] error. The first few controllers work fine, the only thing I can see that I''ve changed is the layout file (but scaffold creates a new layout for each controller so can''t see that being the problem). You
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...dor/plugins/backgroundrb/lib/backgroundrb.rb:98:in `new_worker'' [RAILS_ROOT]/app/models/uploader.rb:54:in `start_thumbnail_worker'' [RAILS_ROOT]/app/controllers/photos_controller.rb:49:in `create'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ mime_responds.rb:106:in `call'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ mime_responds.rb:106:in `respond_to'' [RAILS_ROOT]/app/controllers/photos_controller.rb:47:in `create'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ base.rb:...
2010 Jul 16
31
Added associations but don't see generated methods
Hi, I''ve got a Rails app working that includes two two classes, etc.: Expense & Vendor. I eventually learned that the mental concept I had of their relationship should be express in Rails as: class Expense < ActiveRecord::Base; belongs_to :vendor; end class Vendor < ActiveRecord::Base; has_many :expenses; end
2009 Feb 03
3
ROXML from_xml not returning an object instance...
...s.rb:124:in `rollback_active_record_state!'' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.2/lib/active_record/ transactions.rb:106:in `save'' /app/controllers/routes_controller.rb:52:in `create'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ mime_responds.rb:106:in `call'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.2/lib/action_controller/ mime_responds.rb:106:in `respond_to'' /app/controllers/routes_controller.rb:51:in `create'' ... Thanks, Adam. --~--~---------~--~----~------------~-------~--~----~ You received...
2012 Jan 18
3
Cannot redirect to nil!
I need some help please.. when I created web application about books market, i create a cart and using test the message error appear like this on rake test:functionals LineItemsControllerTest > test_should_create_line_item > ERROR > Cannot redirect to nil! and also appear on web side, thats error told that "Cannot redirect to nil!" Then i was checking the code,
2007 Sep 01
0
Problem with custom Mime::Type.register.
...custom Mime::Type of application/x-amf :amf (Mime::Type.register "application/x-amf", :amf). The problem I''m having is that the respond_to function never responds to the application/x-amf content-type. I think I''ve narrowed it down to the actionpack/lib/actioncontroller/mime_responds.rb file. If you look at the "custom" and "render" methods (towards the bottom). the method, "custom" doesn''t ever put the mime_type into the @mime_type_priority array. Which causes the "render" method to never try to "respond_to" for my cu...
2011 Aug 15
2
respond_with with templates and http status when creating an object
Hi. When you use respond_with in a controller #create method and want to render XML the response gets the http status 201 (Created). But if you use a view to render this XML response_with uses the status 200 (Ok), for example when you use the gem rabl. I cannot determine if this matter is related to Rails or rabl. If it''s from Rails, is there a particular reason for this behavior?
2012 Sep 18
4
"best practices" for Rails serving RESTful JSON services for use by AngularJS, Ember.js, etc.
I''ve been writing a gem to implement and extend common controller functionality so that Rails can be used with Javascript frameworks like AngularJS (which we are using), Ember.js, etc. in such a way that the user doesn''t have to tweak a a bunch of rails g controller boilerplate code to provide services for use in these frameworks that in turn would require various changes to
2007 Jun 28
1
DRb server crashing
...ransactions.rb:117:in `rollback_active_record_state!'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:105:in `save'' [RAILS_ROOT]/app/controllers/comments_controller.rb:52:in `create'' [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:104:in `call'' [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:104:in `respond_to'' [RAILS_ROOT]/app/controllers/comments_controller.rb:51:in `create'' [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1136:in `send'...
2006 Aug 10
4
exporting vcards from rails
i''m doing a site for someone that has a form set up to collect contact information from the user. i installed the vpim gem and was hoping to give my client a way to download all of the contact''s information as a vcard. using the examples, i was able to get it working in ruby, but i''m not quite sure how to generate and download a vcard on the fly. has anyone done
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me) Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in...