search for: abstract_controller

Displaying 20 results from an estimated 21 matches for "abstract_controller".

2010 Jul 27
13
3.0.0rc ActionController::RoutingError No route matches
Have been developing on 3.0.0beta4 and just updated to 3.0.0.rc. When I try to link_to() a User object that previously had worked, I get the following: ActionView::Template::Error (No route matches {:action=>"destroy", :controller=>"games", :id=>#<User ..... > Yet I have in my routes.rb file has resources :users and my "rake routes" shows:
2010 Aug 05
5
asset_host and ActionMailer
After digging through the rails code to figure out why my asset_host wasn''t getting applied to emails, I realized that it''s because the config object in the context of a mailer is config.action_mailer and not config.action_controller. This means you need to set asset host separately for emails, as config.action_mailer.asset_host. Should this be considered a bug? Is it really
2010 Dec 10
0
Encoding issues when uploading files
...nd the name of the file I''m uploading Error: incompatible character encodings: UTF-8 and ASCII-8BIT Full trace: app/controllers/index_controller.rb:6:in `upload'' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'' actionpack (3.0.0) lib/abstract_controller/base.rb:150:in `process_action'' actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:in `process_action'' actionpack (3.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'' activesupport (3.0.0) lib/active_support/callbacks.rb:435:in `_run__1...
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...npack (4.0.0.beta1) lib/action_view/renderer/template_renderer.rb:17:in `render'' actionpack (4.0.0.beta1) lib/action_view/renderer/renderer.rb:36:in `render_template'' actionpack (4.0.0.beta1) lib/action_view/renderer/renderer.rb:17:in `render'' actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:119:in `_render_template'' actionpack (4.0.0.beta1) lib/action_controller/metal/streaming.rb:219:in `_render_template'' actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:112:in `render_to_body'' actionpack (4.0.0.beta1) lib/action_controller/metal/re...
2010 Aug 18
6
undefined method `eq' for nil:NilClass
I''m walking through an example in the "Head First Rails" book, but, instead doing the examples using Rails3.0.0.rc. But, I''m getting this error when browsing for example: http://localhost:3000/advs/1 undefined method `eq'' for nil:NilClass Provided that my advs_controller.rb is as follows: http://pastie.org/private/cd9zntg2ite57ept288kfa Any ideas why
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
...9; app/controllers/access_code_controller.rb:102:in `save_code_request'' app/controllers/access_code_controller.rb:22:in `send_email'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:167:in `process_action'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'' [GEM_ROOT]/gems/activesupport-3.2.3/li...
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
...9; app/controllers/access_code_controller.rb:102:in `save_code_request'' app/controllers/access_code_controller.rb:22:in `send_email'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:167:in `process_action'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action'' [GEM_ROOT]/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'' [GEM_ROOT]/gems/activesupport-3.2.3/li...
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
...g'' actionpack (3.0.7) lib/action_controller/metal/rendering.rb:10:in `process_action'' actionpack (3.0.7) lib/action_controller/metal/rendering.rb:10:in `map'' actionpack (3.0.7) lib/action_controller/metal/rendering.rb:10:in `process_action'' actionpack (3.0.7) lib/abstract_controller/callbacks.rb:18:in `process_action'' activesupport (3.0.7) lib/active_support/callbacks.rb:441:in `_run__2115867319__process_action__733682996__callbacks'' activesupport (3.0.7) lib/active_support/callbacks.rb:410:in `send'' activesupport (3.0.7) lib/active_support/callbacks...
2013 Feb 10
0
Nested attributes doesnt get updated
..._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'' actionpack (3.1.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'' actionpack (3.1.3) lib/abstract_controller/base.rb:167:in `process_action'' actionpack (3.1.3) lib/action_controller/metal/rendering.rb:10:in `process_action'' actionpack (3.1.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'' activesupport (3.1.3) lib/active_support/callbacks.rb:425:in `_run__4...
2007 Nov 06
2
what did I do?
...ems/1.8/gems/merb-0.4.0/lib/merb/template/haml.rb:44:in `transform'' /Library/Ruby/Gems/1.8/gems/merb-0.4.0/lib/merb/mixins/render.rb:209:in `render'' /Users/kevwil/dev/git/rubyrubyroo/app/controllers/articles.rb:10:in `index'' /Library/Ruby/Gems/1.8/gems/merb-0.4.0/lib/merb/abstract_controller.rb:57:in `send'' /Library/Ruby/Gems/1.8/gems/merb-0.4.0/lib/merb/abstract_controller.rb:57:in `call_action'' /Library/Ruby/Gems/1.8/gems/merb-0.4.0/lib/merb/abstract_controller.rb:32:in `dispatch'' /Library/Ruby/Gems/1.8/gems/merb-0.4.0/lib/merb/controller.rb:80:in `dispatch...
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,
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
...=>"1", "quantity"=>"1"}, "commit"=>"Create Package crew"} stack error app/admin/package_crews.rb:35:in `create'' actionpack (3.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'' actionpack (3.2.1) lib/abstract_controller/base.rb:167:in `process_action'' actionpack (3.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'' actionpack (3.2.1) lib/abstract_controller/callbacks.rb:18:in `block in process_action'' activesupport (3.2.1) lib/active_support/callbacks.rb:447:in `_run__3...
2012 Sep 04
2
How to get contact list from yahoo in rails using OAuth
I can successfully get the contacts from google using OAuth gem in rails. my gmail configuration is : :google=>{ :key=>"***", :secret=>"***", :expose => true, :scope=>"https://www.google.com/m8/feeds/" } now i want to get contact from yahoo and hot mail. How to get that contact I have given following configuration in my
2012 Sep 18
2
undefined method `to_sym' for nil:NilClass
...ticate'' app/controllers/authenticate_controller.rb:9:in `authenticate'' actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'' actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'' actionpack (3.2.2) lib/abstract_controller/base.rb:167:in `process_action'' actionpack (3.2.2) lib/action_controller/metal/rendering.rb:10:in `process_action'' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:18:in `process_action'' activesupport (3.2.2) lib/active_support/callbacks.rb:414:in `_run__2116553026...
2007 Dec 19
3
Trapping custom exceptions in merb 0.5.0
...same result... What am I missing ? Thanks, Fernand Stack: Unable to connect. Invalid credentials - (InvalidKey) /Users/fgaliana/work/new_ci/projects/domain/applications/fred/trunk/app/controllers/fred.rb:19:in ''blee'' /opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:87:in `send'' /opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:87:in `call_action'' /opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:43:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/controller....
2011 Jun 12
3
Problem with undefined variable current_user
...acks'' rake-0.8.7/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'' rake-0.8.7/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/callbacks.rb:93:in `run_callbacks'' rake-0.8.7/ruby/1.9.1/gems/actionpack-3.0.3/lib/abstract_controller/callbacks.rb:17:in `process_action'' rake-0.8.7/ruby/1.9.1/gems/actionpack-3.0.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'' rake-0.8.7/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/notifications.rb:52:in `block in instrument'' ra...
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...
2007 Sep 11
4
Problem returning a Proc
I''m just playing with a recent Merb trunk (-r590). All the specs pass, apart from 2 pending. Now, the README says: "if you return a Proc object from your action, it will be called and the return value sent to the client." However this doesn''t seem to work with the following test controller: class Hello < Application def world res = "Hello world from
2012 Sep 28
0
Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern
....class_eval(&@_included_block) if instance_variable_defined?("@_included_block") And there are classes like this that only benefit from the dependency handling and included block class_eval part of Concern that maybe could benefit from that being split up somehow?: actionpack/lib/abstract_controller/asset_paths.rb: module AbstractController module AssetPaths #:nodoc: extend ActiveSupport::Concern included do config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir, :default_asset_host_protocol, :relative_url_root end end end So...
2014 Apr 23
0
Something went wrong
...oller/metal/rescue.rb:29:in `process_action' 2014-04-23T21:35:54.918740+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act ivesupport-4.1.0/lib/active_support/callbacks.rb:86:in `run_callbacks' 2014-04-23T21:35:54.918741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act ionpack-4.1.0/lib/abstract_controller/callbacks.rb:19:in `process_action' 2014-04-23T21:35:54.918744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act ionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:31:in `block in pro cess_action' 2014-04-23T21:35:54.918745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act ive...