Displaying 20 results from an estimated 400 matches similar to: "fragment caching with search box"
2008 Dec 09
4
thin server processes slowly growing in RAM size
When I initially start up my server I have two thin processes running
that are only about 200M in size. They slowly creep up a few megs an
hour until now a week later they are at 400M and 300M respectively.
I realize that my site (http://wlodb.com) has some intensive pages that
take a couple seconds to render (most notably http://wlodb.com/compounds
) but I''m wondering if this is
2009 Aug 11
2
Bugzilla not working following RHEL to CentOS migration
Dear listmates,
I've recently moved a server from RHEL5 to CentOS 5.3 after it was
decided not to renew the subscripton. Everything works beautifully
except for Bugzilla, which throws MySQL errors. For example, the
sanitycheck.cgi page says:
# # #
Bugzilla ? Sanity Check
* Home
* | New
* | Search
* |
* | Reports
*
* | My Votes
* | Preferences
2005 Dec 20
3
Single controller to browse things in categories
First off, hi, I''m [obviously] new :O)
Please excuse my question as I''m sure it''s been answered, but I can''t
find it anywhere.
I have a table of categories:
id name
1 Foo
2 Bar
I have things which belong_to categories:
id category_id subject date
1 1 my subject 07/09/2004
and Further classifications which belong_to categories:
id category_id name
1 1 More
2006 Aug 24
2
Design questions on creating digg.com-like URLs (are they considered RESTful?)
Hi everyone, I''m working on creating a site that functions similar to
digg.com (please no "no more digg clones" remarks please! :) ). One
thing I really like about digg is there URLs are very nice to read and I
would like to emulate that without having a lot of actions spread out
all over my application.
So in my app I have three main resources:
Users, Tags, and Items
2007 Sep 18
2
rSpec / Nested Routes / Mocks
I''m having a terrible time trying to test a nested route with rSpec.
I can''t seem to tell rSpec to expect the call @item.user. The
following error message plagues me not matter how I try to fuss with
the mock:
Spec::Mocks::MockExpectationError in ''ItemsController handling POST /
items should redirect to the new course on successful save''
Mock
2007 Oct 26
3
Specing with Subdomains as Account Keys
How do you go about implementing and rspecing subdomains as account
keys? I''m sure that this must be an issues for others as well.
So I have an app using subdomains as account keys. The Application
Controller sets up @current_company in a before filter. Everything is
done within the context of the @current_company.
After reading about Demeter''s Revenge
2009 May 02
10
Problem verifying routing error
Hi,
When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having
a new problem verifying routes that should not exist.
This is to support something like this in routes.rb:
map.resources :orders do |orders|
orders.resources :items, :except => [:index,:show]
end
I used to use lambda {}.should_raise( routing error ), but it stopped
detecting any raised error.
2009 Sep 24
8
Drop down list ?
Hi Gurus, I''m trying to tackle a drop down list. I have category and
item dbs, and they''re wired up with category has_many :items and item
belongs_to :category, and an item has a category_id. I have this code
in my new/edit.html.erb for item:
<%= f.collection_select :category_id,
Category.find_main, :id, :header, {}, :multiple => false %>
And a pretty drop down list
2006 Apr 04
2
HABTM
Hi.
Im new to Ruby and new to Ruby on Rails and have problems realizing a =20=
simple many_to_many relationship:
My tables:
items <-> items_users <-> users
------------------------------------------------------------------------=20=
--------------------------------------
id user_id =
id
name item_id name
... =
password
=
......
My Code:
class
2011 Jul 14
0
subclasses with inherited_resources?
I''m trying out inherited_resources and so far so good. However, one
problem I''ve run into is that it''s very difficult to customize
inherited_resource behaviour in subclasses. Looking through the
source I see it uses things like undef_method and class_attribute.
For example, if I have the following controllers:
class ItemsController
inherit_resources
actions :new,
2009 May 03
0
HTTP Auth 401 Even on Valid Login
I can''t understand why authenticate_or_request_with_http_basic keeps
failing even though I am entering the correct info.
If I try to access /admin/items/new, I enter the correct info but I
keep getting prompted.
The strange part is that when I cancel out, I get "HTTP Basic: Acce".
Here''s the controllers:
class Admin::BaseController < ApplicationController
2007 Mar 21
0
Getting the module name with ObjectSpace...
Hey :)
I''m trying to create a method for making a sitemap dynamically. It
works great for flat sites where you simply have your controllers in
the app/controllers directory. In this case, I can extract the
controller names like,
@controllers
ObjectSpace.subclasses_of(ActionController::Base).each do |obj|
@controllers["#{obj.controller_name}"] = obj
end
However,
2009 Apr 19
1
Cucmber: Mysql::Error: query: not connected: ROLLBACK
Hi,
I ran in trouble with unexpected rollbacks using cucumber 0.3.0.
My feature-file looks like
Scenario: Create Valid Item
Given I start
and the step is
Given /^I start$/ do
get "/items"
end
In my log/test.log I get
SQL (0.2ms) SET NAMES ''utf8''
SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
SQL (0.1ms) BEGIN
Processing ItemsController#index
2007 Mar 09
0
Does Bdrd 2.x handle fragment caching still?
From the API I was unable to determine if the new architecture for
BackgrounDRB still handles fragment caching? If so, how can I use it?
I am upgrading to the new architecture from the old one and used this
functionality in the old code base.
I like the new architecture, thank you.
Cheers,
Matt
2006 Aug 07
0
Rails fragment caching bug?
<% cache(:part => @user.id) do%> in the file controller => users, action
=> show.
Regardless if you put the action so it ends up as <% cache(:action =>
''show'', :part => @user.id) do%> or the controller, the file will come
out in "tmp>cache>`SERVER`>users>show>1.part=userid#.cache . Which is
fine except for the 1 in the cache
2006 Aug 10
1
Fragment cache creates folder for each URL.
I''ve got a site that uses fragment cache stored in tmp/cache.
When you access it as http://www.site.com it creates a folder
tmp/cache/www.site.com.
Likewise, when you access it http://site.com it creates af older
tmp/cache/site.com
I believe it does the same with sessions, though I store those in the
DB. How do I go about fixing this? Can i redirect using .htaccess or
Webmin?
--
2006 Aug 18
1
Fragment Caching
Hello.
I wouldn''t mind getting some feedback about the use of fragment
caching. I''ve got a series of relatively expensive database queries
with their respective partials cached and everything is working fine.
The problem is that do get this to work I''ve had to move the database
queries from the controller into the view layer so as to avoid them
being called if the
2006 Jun 19
0
Expiring fragment cache when multiple domains point to the same app?
Hi All,
We have four domains setup for The Couch: thecouch.org.nz,
thecouch.co.nz, www.thecouch.org.nz and www.thecouch.co.nz. They are
all handled by the same rails app. The means that fragment caching
creates four folders in our cache directory, named after each URL.
This introduces two problems:
1: We are caching 4 times as much stuff as necessary
2: Our cache sweepers are only sweeping one
2006 Jun 19
0
Help: Expiring fragment cache across multiple domains
Hi All,
We have four domains setup for The Couch: thecouch.org.nz,
thecouch.co.nz, www.thecouch.org.nz and www.thecouch.co.nz. They are
all handled by the same rails app. The means that fragment caching
creates four folders in our cache directory, named after each URL.
This introduces two problems:
1: We are caching 4 times as much stuff as necessary
2: Our cache sweepers are only sweeping one
2006 May 26
2
link_to and fragment identifiers
Fragment identifiers, it took me 30 minutes just to figure out what
they are called.
I would like to be able to create url that looks like this:
post/view/id#comments
How do I do that with a link_to function?
link_to "Comments", :controller => "post", :action => "view", :id =>
post.id ???
Thanks guys! :-)
John Kopanas
http://www.kopanas.com