similar to: Using caches_action ?

Displaying 20 results from an estimated 200 matches similar to: "Using caches_action ?"

2006 Aug 17
3
Ferret locks up when adding items to an index
I''m running Ferret 0.9.5 on a MacBook Pro (OS X 10.4.7) under Locomotive 2.0.7. I have a problem where Ferret is hanging when I try to add items to the index. It doesn''t happen with every object that''s being indexed, and I''m not sure what the objects in question have in common (they are not all instances of the same ActiveRecord object). The process
2006 Aug 02
4
Model still using mysql
When calling a Result.find_by_content on my model, I get the following error: Mysql::Error: Table ''db.results'' doesn''t exist: SHOW FIELDS FROM results Yes, I remembered to put acts_as_ferret. Any ideas? Trace:
2006 Jul 28
3
Forms: handle foreign keys (AssociationTypeMismatch)
Hi all I tried and tried and tried, but I still fail in creating a form with proper validation and stuff for foreign keys... So I''d really like to get some help here. I''m creating a booking site for DJ''s, and for every booking one can choose one of different countries: class Booking < ActiveRecord::Base validates_presence_of :country_id
2006 Jul 11
2
Ferret 0.9.4 C extensions and Macbook Pro
Hello, I am developing on a MacBook Pro. I had installed make and the gcc compiler in order to take advantage of the C extensions, and I installed the ferret 0.9.4 gem. When I installed the gem, it compiled the C extensions as part of the installation process for the gem, and I received this output: Attempting remote installation of ''ferret'' Building native extensions. This
2006 Aug 09
6
gem install rails
Hi All, I installed ruby184-20 and rubygems-0.9.0 on my computer. When I tried to run C:\ruby>gem install rails --include-dependencies, it showed the following message: Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find actionpack (= 1.12.4) in the repository Could any one help to solve the above
2006 Jul 31
0
rescue_action_in_public useless to capture low level errors
Hi all, I''m trying to make for nicer system error handling, with the help of rescue_action_in_public (see Recipe 47, in ''Rails Recipes'') PROBLEM: While it lets me capture an incorrect db name in database.yml (for example), with lower level errors like when the DB server is just down, I still get the default system error screen for MySQL::ERROR :
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/7769 ------------------------------------------------------------------------ r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line MySQL: speedup date/time parsing. ------------------------------------------------------------------------ U
2008 Jan 12
0
Can't test application controller methods in functional tests?
I have two methods in application controller that I want to test from ForumController: ----------------------- class ApplicationController < ActionController::Base ... def logout session[:username] = nil session[:admin] = nil redirect_to(request.request_uri) end ... def home redirect_to(:controller => ''forum'', :action =>
2006 Aug 10
1
unable to upgrade to 1.1.5 (Win) gem error
Hello, With XP and behind a proxy, network gem install is broken since i''ve upgraded to Ruby 1.8.4 and Ruby Gems 0.9.0. rem : Old Ruby 1.8.2 & gem 0.8.x still working.. [c:\temp\gem\rails115]gem update rails --include-dependencies -p "http://damnedproxy.local:8080" --debug Exception `Errno::ENOENT'' at C:/RUBY184/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:50 -
2006 Aug 23
0
Caches_action/ before_filter problem .
Hello, I have a method called "check_permission" that is set to run as a before_fitler and which checks if a user has the authorization to view a page. This page is displayed through the method "show" which is cached through the tag "caches_action :show" My problem is that once a user with authorization to a page accesses it, then afterwards all users (with or
2006 Feb 13
3
caches_action does not go off the entire URL
I am trying to use caches_action and the agile book says that it is keyed off the URL, however it does not seem to pick up the URL parameters. http://localhost:3000/controller/action/id?foo=bar and http://localhost:3000/controller/action/id?foo=foobar Returns the same page. Anyone looked into how to add URL parameters to the cached key? Also, where do those file get stored? Thanks Dave
2006 May 07
0
caches_action and render_component
I''ve made some test: ------------------ CODE ------------------ class FooController < ActionController::Base caches_action :foo def foo render_text ''Hello, foo<br />'' end end class BarController < ActionController::Base def bar render :inline => <<-EOS Hello, bar <br /> <%= render_component(:controller =>
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
Hi folks - Seeing a weird problem and would love some help. It''s documented in http://pastie.org/278310 to be more readable. In short, I have a caches_page "action", :if => {stuff} but the :if is never being called - the action is just caching every time. (If I put a debugger call in the :if block, it never stops.) If I replace caches_page with caches_action, the if
2007 Jan 22
2
caches_action :index for site root gets propagated to lower levels (how to stop?)
Hello all, I am running a blog system which has its "/" (home page) cached like this: class ApplicationController < ActionController::Base before_filter :index_cache_expirer, :only => [:index] caches_action :index so the site''s top page is caches for 60 seconds in my case (index_cache_expirer is a home-made function to expire) on the site, there is also a
2007 Oct 28
0
caches_action - can I change the path?
How can I change: subdomain.domain.com/directory.file.cache to directory/file.cache I''d like to set how my action cache files are created. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Mar 16
3
Connecting to Oracle8i
Hi All, I have a problem in connecting to oracle and here is the steps i''ve been going through (i''m using the regular oracle8 client, not the instant one): 1. i installed the one-click ruby installer (ruby184-16p3 windows.exe) 2. i installed the rails-1.0.0 framework using gem successfully 3. i tried connecting to oracle using all possible combination in the database.yml file
2006 Jan 01
5
scaffold not working on Windows XP
Hello, I did a fresh install of ruby182 and gem rails --include-dependencies Now when I do: rails receipts cd receipts ruby script\generate scaffold receipt receipt rails does not create the views or controller. What can I do? Thanks Frank
2006 Feb 24
3
Offline Installation
Hi I want to install Rails in my windows laptop but I don''t have internet conecction at home, so I''m saving in a usb drive the ruby installer (ruby182-15.exe) and the gems package (rubygems-0.8.11.zip) , could anyone point me what other files do I''ve to take home.
2006 Sep 25
9
acts_as_ferret highlight
I am getting nil returned when doing the following: r.highlight(@condition, :field => ''body'') ''r'' is an instance of the a_a_f model. ''body'' is a tokenized saved field. I am running latest ferret and a_a_f trunk. Am I doing something wrong? -- Posted via http://www.ruby-forum.com/.
2006 May 05
3
exception_notification plugin not sending mails in development on localhost
Hi everyone, So, I''ve got exception_notification working now, but not in development mode on localhost. In my ApplicationController, I''ve added: local_addresses.clear Shouldn''t that be enough? Thank you! Sean