Displaying 4 results from an estimated 4 matches for "kalivo".
2006 Jun 30
4
Strange behaviour from assert_redirected_to
I have this assertion in my tests:
assert_redirected_to :controller => ''user'', :action => ''change_password''
It fails with:
response is not a redirection to all of the options supplied
(redirection is <"http://test.host/user/change_password">),
difference: <{:controller=>"user"}>
The redirection was:
redirect_to
2006 Aug 24
10
MongrelCluster - How can I make a request to a specific mongrel instance?
In our app we''ve a number of singleton ruby classes that cache static data
in hashes, things like
string values, system config params, etc). In a webbrick environment this
works ok, but we find
in production we have a problem because we have 4 caches, one for each
mongrel instance.
This also isn''t a BIG problem, but our cache.reload() methods are kinda
useless now, because
we
2006 Jul 10
0
Strange acts_as_paranoid behavior
Using the acts_as_paranoid plugin with rails 1.1.4 (model also uses
acts_as_threaded and acts_as_taggable) and getting some unexplainable behavior.
The following tests:
assert_equal Conv.count, num
assert_equal Conv.count_with_deleted, CONVS_TOTAL
Produce the following SQL:
SQL (0.000000) SELECT count(*) AS count_all FROM convs WHERE ((
convs.deleted_at IS NULL OR convs.deleted_at
2006 Jun 24
3
Performance vs normalization best practice
I have a common situation and would like best practice suggestions from some
of you more experienced rails developers.
In my DB I''ve normalized tables in a traditional manner, e.g. I have Posts
which have authors stored in a Users table.
My problem is when I go to show a list of Posts and I want to display the
author name (e.g. post.author.name)
ActiveRecord appears to do a SELECT