Displaying 20 results from an estimated 20000 matches similar to: "Undefined method `rescue_responses' for ActionController::Base:Class in Rails Edge"
2008 Jan 03
1
help - updated from 1.2.5 to 1.2.6 and getting undefined method 'session=' for ActionController::base
i start the server but it exits right away,
I ran the rake to update and changed the version string in config.rb.
Any thoughts on this matter would be appreciated.
i imagine that it has something to do with the session, but i am not
able to figure it out.
my config/config.rb has the following
config.action_controller.session = {
:session_key => ''c3_rails_session'',
2006 Jun 07
1
What is class TestController < ActionController::Base
What are the different parts of; class TestController <
ActionController::Base?
I look at the http://api.rubyonrails.org/ and try to understand but I
don''t. Could someone give me a hint?
I get the part of Test being the "folder", def and all that, but I can''t
find an explanation of the basic stuff.
--
Posted via http://www.ruby-forum.com/.
2011 Jun 23
0
Exception in ActionController::Base:Class for "first request only"
Hi,
I am running Rails 3.0 with Ruby 1.9.2 (compiled from source) on
Ubuntu 10.04.1 (Lucid Lynx) 32-bit.
About a week back I started seeing this weird exception for a
particular request and that too only for the "first time", every time
after I restart my server (WEBrick in this case). All subsequent
requests are fine. If the same request made again, it works fine.
Here is the
2008 Mar 03
0
Overriding ActionController method in an app
i can''t seem to get this working... basically, i want to use a patch
that was added to rails:
http://dev.rubyonrails.org/changeset/8785
but i don''t want to have to upgrade past 2.0.2, and i don''t want to
have to freeze rails inside the app.
so i was hoping to override the methods in ActionController required
to make the patch to my app only. i created a file called
2008 Aug 23
0
Why ActionController::Base.class_eval for includes?
Just out of curiosity, why does action_controller.rb include classes
with class_eval instead of directly? I.e., why
ActionController::Base.class_eval do
include ActionController::Flash
include ActionController::Filters
...
end
instead of just
class ActionController::Base
include ActionController::Flash
include ActionController::Filters
...
end
--
Posted via
2010 Jan 18
0
rails 3.0: ActionController::Base render()
Can anyone explain where render() comes from in
ActionController::Base?
I managed to trace it down only that far:
ActionController::Base includes ActionController::Rendering where
render() method is defined. This definition however calls to render of
the superclass. Superclass is ActionController::Metal. Which in its
turn inherits from AbstractController::Base. None of those have render
() either
2008 Mar 16
3
undefined method `redirect_to'
Hi all. I''m getting the following error in my app:
undefined method `redirect_to'' for ActionController::Base:Class
I''m using Windows 2000, Rails 2.0.2 and resource_controller (from
James Golick).
My controller:
class CommentsController < ApplicationController
include ResourceController::Controller
belongs_to :post, :article, :photo
create do
2009 Jun 18
1
undefined method `text_field_with_auto_complete'
Dear all:
I got the error in my rails 2.2.2 project on ma os x leopard. i did
as follow:
script/plugin install auto_complete
but when i start the server and try to approach the page which used
the auto_complete, it can''t find the helper method as the error told:
"undefined method `text_field_with_auto_complete'' ", than i try this
in script/console
helper.methods
i
2011 Sep 07
3
Method get of ActionController::TestCase ignores routes.rb?
Hi!
I''m running into issue which seems to indicate that
ActionController::TestCase.get() method ignores what I have in routes.rb.
Happens in 3.0.10 and 3.1.0 too.
I have the following RSpec2 test of my XmlRpcController#index action:
it "should get nothing in response to GET request" do
get :index
response.response_code.should == 400 #bad_request
end
And the only line
2009 Nov 24
2
Deploying Error: undefined method 'generate_best_match='
Hey guys,
I''m quite new to rails and experiencing some problems with the
deployment of my application to a web server.
I am using github, can connect to the server, "cap deploy:check"
and :setup run fine, but when I want to use "deploy:cold" or migrate
my database (rake RAILS_ENV=production db:migrate) I get this error:
rake aborted!
undefined method
2007 Oct 16
1
Stub ActionController::Base#params
Has anyone had any success stubbing ActionController::Base#params? The
following is not intercepting calls to params[:foo] in my controllers:
ActionController::Base.stub!(:params).and_return(:foo => ''bar'')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071016/282a76ba/attachment.html
2010 Jan 20
0
(2.3.5) ActionController::Base.session_options[:expire_after] + Error 422/Authenticity Token Issue
I''m getting ready to put an app into production and I''ve found a
strange issue that, as far as I know, shouldn''t be happening. To me
this looks like it could be a bug, but I''m not sure and I''m hoping
some one here can tell me if they''ve seen this before, or can idiot-
check me in that hopefully it''s just something I''ve missed
2010 Jul 08
0
Rails3 -- Replacement for ActionController::Base.relative_url_root?
I have a post on stackoverflow which outlines the problem I am having:
http://stackoverflow.com/questions/3181746/what-is-the-replacement-for-actioncontrollerbase-relative-url-root
In short, I ported a rails 2.x to rails3 and started getting a
deprecation warning for using
ActionController::Base.relative_url_root. I switched to using
config.action_controller.relative_url_root and while any
2009 Jul 31
2
ActionController::RoutingError (No route matches "/say/hello" with {:method=>:get}):
Hello:
I have found a whole lot of posts on this, however, none of them offer
any sort of solution other than restarting the web server, which I
can''t imagine everyone out there developing on Rails is doing.
I am on page 40 of Agile Development with Rails 3rd edition and trying
to get the missing template error to show but until I restart webrick
I only get the following:
Processing
2010 Apr 27
2
how to start an edge rails app
I want to check out an issue in edge rails. I''ve never used edge
before and am having a lot of trouble getting it up and running.
Following modified instructions from
http://ariejan.net/2009/01/04/how-to-start-a-rails-edge-app-the-easy-way/
$ mkdir -p app/vendor
$ cd app
$ git clone git://github.com/rails/rails.git vendor/rails
$ ruby vendor/rails/railties/lib/rails/cli.rb .
2007 Jul 01
0
rake: uninitialized const ActionController::TestUploadedFile
Hi,
My app uses attachment_fu and I''d like to pre-load some data via a rake
task.
Thus:
[code]desc "Upload template files"
task :upload_files_test => :environment do |t|
conf = Conference.find(1)
[{:f => ''styles.css'', :type_code => ''css'', :content_type =>
''text/css''}].each do |i|
file =
2007 Apr 16
4
Web Flow and the session method in ActionController
Hi there,
I''m writing a port of Spring Webflow to Ruby on rails and I''ve
encountered quite a lot of difficulty finding how to override the
session[] method which is accessed via any ActionController.
I have my pseudo-code ready to implement, but I can''t find the method
declaration to copy it''s signature.
Also, if anyone wants to collaborate on this particular
2008 Dec 08
2
undefined method 'render_file' for class 'ActionView::Base'
I need some help with SimpleLog
I have SimpleLog running at HostingRails.
I want to develope and test new themes stuff on my local system.
I getting the error from actionview_ex.rb:12
undefined method ''render_file'' for class ''ActionView::Base''
I am at:
Ruby: 1.8.6
Rails 2.2.2
gem: 1.3.1
rake: 0.8.3
I am a new rails/merb/ruby developer. I think I am on the
2011 Mar 30
0
Anonymous Subclass of ActionController::Base
I''m trying to spec a subclass of ActionController::Base using an
anonymous subclass but I am running into errors but I am receiving a
uninitialized constant StubResource
Here is my base class
class Admin::BaseController < ApplicationController
before_filter :etherweb_site
load_and_authorize_resource
layout "admin/admin"
protected
def etherweb_site
end
end
2007 Dec 16
0
Specifying asset hosts via a proc (ActionController::Base.asset_host)
Hi all,
I just submitted a patch that would allow you to pass a proc to
ActionController::Base.asset_host rather than just using a %d
wildcard (e.g. assets%d.example.com). Basically this frees you from
the hard-coded assumption that you have 4 hosts numbered 0-3 and also
allows you to do smarter things depending on the asset (e.g. images
from a particular domain, stylesheets from another). The