similar to: uninitialized constant ActionController::Caching::Fragments

Displaying 20 results from an estimated 200 matches similar to: "uninitialized constant ActionController::Caching::Fragments"

2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using CalendarHelper works fine. Then I tried to test using rake command which gave me the following error. Why does these messages appear evenif the application owrks fine. ------------------------------ Error Messags -------------------------------------- /usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
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
2006 Aug 06
1
Where is ActionController::InPlaceEditing?
I can''t find this doc anywhere, but the JavaScriptMacrosHelper doc mentions it. Jose -- Posted via http://www.ruby-forum.com/.
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
I''m looking for some help with an issue I''m having using an external asset host. I''ve got the lines below in my environments/development.rb file. # Enable serving of images, stylesheets, and javascripts from an asset server config.action_controller.asset_host = "http://assets.example.com" #make rails think it lives in /app
2006 Jul 03
0
ActionController parameters and conditional select
Hello everyone, I''m pretty new to Rails and have been working on my own test app to check things out. I''ve run into a couple of Nuby snags. I''ve looked for the answers but have not found a concise answer to my problem. What I would like to do is to have a table of ''people'' and be able to display a list of ''people'' based on
2006 Jul 04
0
ActionController::UnknownAction hangs application
I''m trying to override rescue_action_in_public() using the PP example, but my application hangs every time I generate an error. def rescue_action_in_public(exception) case exception.class when ActiveRecord::RecordNotFound, ActionController::UnknownAction render( :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not
2006 Jul 20
3
ActiveRecord/ActionController in javascript code
Hi, I have a javascript file for generating a menu when the user hovers over a link. These links are basically a list of logged in users. Now, in the menu I would like to have a link to "Display Profile" so that a user can view the profiles of other users. Also nice would be a picture in the menu. The problem is obviously that the javascript expects static links. But I want to
2006 Jul 30
1
ActionController
I m pretty new to Rails. Can you help me in this... ActionController: Create a controller that will find a specific as well as all orders of a given customer. Consider there is a table names Order and Customer. Can you help me with the code? -- Posted via http://www.ruby-forum.com/.
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/.
2006 Jun 09
0
disable escaping of ActionController::Base.url_for
Hi! I am trying to use rails for a wml/wap application. Submitting forms with wml goes something like that: <input type="text" name="search" value="" /> <a href="/portal?search=$(search)">goto</a> The wap browser replaces $(search) in the url with the text entered in the input field. Now to my problem. To use the routing information
2006 Mar 07
1
How does the ActionController class get loaded/accessed?
I am trying to access the Upload Progress feature in Action_Controller. When I add Action_Controller::Base.enable_upload_progress to my environment.rb file, and restart WEBrick, I get the following error: C:\eclipse\workspace\eSimplyOnlineRails>ruby script/server => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/ dependencies.rb:195:in
2006 Mar 11
1
actioncontroller sans view
just wondering if theres a more idiomatic way to avoid the `assert_existance_of_template_file'' error than passing an empty block to render :update (or hacking up the actionview::base class). ive tried various things like render :template => false/nil etc and havent seem to found a magic trick.. i realize most times a controller would want a view but various cases during
2006 Mar 16
0
ActionController::Verification problem
Hello, I have a subscriptions model and a ''new'' action in subscriptions controller to create new subscription. Also, I have a ''thankyou'' view, which I want to display only if user is just subscribed. So I want to block access to http://localhost/subscriptions/thankyou action with a verify filter. Here is my code: class SubscriptionsController <
2006 Mar 17
2
How to specify default action for particulr actioncontroller
HI, How to specify default action for particular actioncontroller? Currently when I m typing the URL as "http:\\localhost:3000\actioncontroller_name" , then I m getting the default actin page as list.rHtml. But instead I want my action page to be index.rHtml. How to do it? Thanx. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
0
ActionController::Verification problem (sorry if it is double post, I''m not sure about the first one)
Hello, I have a subscriptions model and a ''new'' action in subscriptions controller to create new subscription. Also, I have a ''thankyou'' view, which I want to display only if user is just subscribed. So I want to block access to http://localhost/subscriptions/thankyou action with a verify filter. Here is my code: class SubscriptionsController <
2006 Mar 24
2
Expiring cached actions outside of ActionController
In the site I''m building, my models are *almost* never updated within ActionController-- all new data comes in via command line scripts manipulating ActiveRecord directly. Can anyone offer any hints about expiring cached actions without Sweeper? -Ross
2006 Mar 27
0
Where is ActionController::TestRequest documentation ?
Hi, I didn''t found any doc about this class - I''m looking for a solution to include a multipart uploaded file in a post request for testing purpose. How can I do ? Thanks -- Posted via http://www.ruby-forum.com/.
2005 Dec 18
0
Testing ActionController::Streaming
Rails has a powerful ActionController::Streaming method, but it''s quite hard to set up unit tests for it. assert_equal ''BINARY DATA'', @response.body won''t work, as .body is a Proc. How can I test that the correct data is served? -- Posted via http://www.ruby-forum.com/.
2014 May 16
0
(Beginner) ActionController::UrlGenerationError - No route matches
(Using Rails 4.1.1 with Ruby 2.1.1 on Mac OSX 10.6 Snow Leopard) I'm doing a Rails tutorial (in case you are interested in: It's http://guides.rubyonrails.org/getting_started.html), and I'm stuck on the following: I create in some erb file a link using <%= link_to 'Add new weird stuff', controller: new_article_path %> and this raises the exception
2009 May 15
0
Undefined method `rescue_responses' for ActionController::Base:Class in Rails Edge
Greetings. I just started a new rails project basing off the edge.[1] I prefer to unpack my gems, but when I did so, I received the error below. Anybody else encounter this and have a suggestion? $ rake gems:unpack (in [omitted]) rake aborted! undefined method `rescue_responses'' for ActionController::Base:Class (See full trace by running task with --trace) Thanks, Ben -- [1]: