similar to: Doesn''t "find" call initialize?

Displaying 20 results from an estimated 20000 matches similar to: "Doesn''t "find" call initialize?"

2006 Jan 22
11
ActiveRecord find
Suppose I have three tables - authors, posts and topics. Every post have a topic and every topic has an author, so I have posts.topic_id and topic.author_id. When the author is guest (not registered), author_id is nil. I need to find all the posts (in one query) where every post have all the information of the topic and the auther, so if p is one of those posts I could get the name of the
2006 Apr 11
4
Two versions of Rails on one PC
I want to have Rails 1.1 + Rails 1.0 on the same PC and be able to load my script with a different version each time. Is it possible? -- Posted via http://www.ruby-forum.com/.
2005 Dec 23
6
Save using Update
Hi, I want to update an existing row in table "items" where items.id == 10 I tried this: item = Item.new item.f1 = ... item.f2 = ... ... item.id = 10 item.save I got an error Duplicate entry ... for key 10 : INSERT INTO items ... How do I make item.save to use UPDATE instead of INSERT? -- Posted via http://www.ruby-forum.com/.
2006 Jan 29
1
Accessing attributes
I have a name of an attribute and I need to get its value and set a new value for it: x1 = a.foo a.foo = x2 How do I do that if the name of the attribute ''foo'' is a var? I thought about doing this: attribute_name = ''foo'' x1 = a.attributes[attribute_name] a.attributes[attribute_name] = x2 but this is a bypass and I''m quite sure it would cause
2006 Apr 06
5
Using helper method of another model
I have a template that belongs to a certain model (model A). I need to call a helper method of a different model (model B). Then I need the helper method of B to call a helper method of model C. I tried using "include" and "require" and using namespaces, but I got "undefined method". What is the way to do it? -- Posted via http://www.ruby-forum.com/.
2005 Apr 04
2
Xen dom0 doesn''t find root device - kernel panic
Hi, I''ve installed xen-2.0.5 from source on gentoo, but the xen dom0 kernel doesn''t find the root device: ############################# snip ###################################### Kernel panic: VFS: Unable to mount root fs on unknown-block (3,3) ############################# snap ###################################### grub.conf: ############################# snip
2008 Apr 18
2
[Bug 15595] New: Keyboard input in Super Crazy Guitar Master Deluxe doesn' t work
http://bugs.freedesktop.org/show_bug.cgi?id=15595 Summary: Keyboard input in Super Crazy Guitar Master Deluxe doesn't work Product: swfdec Version: 0.5.5 Platform: All URL: http://uploads.ungrounded.net/310000/310792_scgmd.swf OS/Version: Linux (All) Status: NEW Severity: normal
2008 Nov 07
0
[ wxruby-Bugs-22706 ] BitmapComboBox doesn''t work on Linux GTK+
Bugs item #22706, was opened at 2008-11-07 06:55 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=22706&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: BitmapComboBox doesn''t work on Linux GTK+ Initial Comment: This is the source code.
2006 Jul 18
2
validate method doesn''t recognize another instance method
All, I am attempting to do some custom validation on my object. Here is my validate method: protected def validate puts "Do I have the target_list_ids method? " + self.methods.include?(''target_list_ids'').to_s if target_list_ids.nil? || target_list_ids.length == 0 errors.add_to_base("You must choose at least one target list for this job")
2007 May 03
1
Numeric Range or comparision doesn''t work
Hi, it looks like Ferret still compares numeric fields by lexical ordering, not numerical ordering. I am using Ferret 0.11.4(I tried in both linux and windows, the results are the same). index = Ferret::Index::Index.new() docs = [ {:num => 1, :data => "yes"}, {:num => 1, :data => "no"}, {:num => 10, :data => "yes"}, {:num => 10, :data
2007 Jan 04
3
grid control example doesn''t work on osx.4
Hi, I am trying to use wxruby2-preview (0.0.38) on my intel macbook running os10.4.8. I am having a beast of a time running the examples in the tutorials. The super basic frame example worked but the simple grid tutorial bombs with the following message: ------ [WhiteGhost:~/tmp/wxStff] hjw$ ruby ./grid.rb /usr/local/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.38-i686-
2007 Jan 22
4
Adding sizers to other sizers doesn''t work
Hello all, Running this on an Intel Mac OSX 10.4.8 ruby 1.8.4 (2005-12-24) [i686-darwin] wxruby2-preview (0.0.37) using zshell I''m having a heck of a time setting up a GUI with a differing number of widgets per row, resulting in a differing number or widgets per column. At first I tried to simply do something like the following: class CharacterInfoPanel < Wx::Panel def
2006 May 17
2
Caching doesn''t work at all...
Installed RoR under lighttpd and noticed that caching some actions didn''t accelerate page serving. The following little example of class TestscriptController < ApplicationController caches_page :index def index @string = Time.now.to_s end end and <html> <head> <title>Test</title> </head> <body> <p>Test</p> <p><%=
2006 May 09
2
User.new doesn´t capture all of the parameters
Hi, I have a page where I can add new users to the database, but it only sees whats in the name and passord field. add_user.rhtml: <%= form_tag %> <%= form_tag :action => ''add_user'' %> <td>User name:</td> <td><%= text_field("user", "name") %></td> </tr> <tr> <td>Password:</td>
2006 Apr 13
3
QueryParser doesn''t use StandardAnalyzer correctly?
I am having a bit of a problem with my search queries being parsed correctly it seems, and I wonder if anyone else has experienced this. I have written an index using StandardAnalyzer for analysis. I want to search that index by passing my user query through a QueryParser instance which is also using a StandardAnalyzer. However the resultant query does not seem to be a valid term query and
2004 Oct 06
11
find_window_by_xxx doesn''t find Gauge or BitmapButton
I''m fairly new to the Ruby world, particularly WxRuby, so please forgive me if this is ground that''s been covered in the past. I''m trying to load a frame from an XRC file (created using DialogBlocks), and I''m having trouble getting an instance of the Gauge object using the Wx::Window.find_window_by_xxx methods. I''m trying this on Windows XP,
2005 Feb 04
2
Failures they e2fsck doesn't find
Hi, I've run many time e2fsck, but in a special dir ls tells me: ls: r?cksendung-wlan.dvi: No such file or directory ls: baf?g_r?ckmeldung.latex: No such file or directory ls: finpr?f.pdf: No such file or directory $ cat finpr?f.pdf cat: finpr?f.pdf: Datei oder Verzeichnis nicht gefunden I don't know what to do? How can I find the failure? If I cat the files with debugfs, I see the
2006 Oct 31
0
6241028 metaimport doesn''t detect partial diskset if missing disk doesn''t have a mddb on it
Author: jeanm Repository: /hg/zfs-crypto/gate Revision: cfe2171ad33aa1cb081f4141b11c75bbbc049b7c Log message: 6241028 metaimport doesn''t detect partial diskset if missing disk doesn''t have a mddb on it Files: update: usr/src/cmd/lvm/util/metaimport.c update: usr/src/lib/lvm/libmeta/common/meta_import.c
2008 Jan 17
1
Under DTrace USDT and PID, kernel''s microstat accounting doesn''t work in this situation, doesn''t it?
Does anyone has any ideas about this problem? 2008/1/15, ?? TaoJie <eulertao at gmail.com>: > > Hi all: > > I''m working on revealing system performance now. > My testing program is an infinite loop. Inside the loop, it will do some > mathematical opertaions and call function callee(), then go to the next > loop. > I install a alarm(30) in the program. It
2006 Apr 28
2
Active Record save doesn''t save! (more detail - is this a bug?)
I got it to work by changing scheduled_end_date= nil to self.scheduled_end_date= nil. I believe these statements should be equivilent. I don''t know Ruby/Rails well enough to know when, if or why that should matter. Can someone educate me please? I want to believe this framework is ready for production work, but silently dropping data is a very big problem. I expect that I''ve