Displaying 12 results from an estimated 12 matches for "sourceillustrated".
2006 Jul 09
5
Tip: searchable Rails api docs from within RadRails!
Just a tip for those of you using RadRails. If you install the new
rubygems 0.9.0, you can type "gem rdoc --all --ri" at the command line.
Then, open up RadRails, go to Window->Preferences->Ruby->Ri/rdoc and
change your ri path to the path to gemri (which gemri). Finally, open up
your RI Eclipse view and voila...indexed, searchable rails api docs at
your finger tips!
This
2006 Jul 08
10
A rant about parameters
Guys,
I''ve been chasing a problem with country_select for the past few hours
now. My intention was pretty simple...use the following line in a form:
<p><label for="country_region">Country</label>
<%= f.country_select :country_region, "United States" %></p>
However, for the life of me, I couldn''t get it to work. I kept getting
2006 Feb 06
7
Delaying initialization of associations until first access
Guys,
Say I have the following:
-----
class Person < ActiveRecord::Base
has_one :house
end
class House < ActiveRecord::Base
belongs_to :person
attr_accessor :color
end
-----
Then I have the following code:
-----
john = Person.new
john.house.color = "Blue"
john.save
-----
What I would like to have happen, is that on first call to john.house, if
house hadn''t been
2006 Jan 19
1
Rationale behind render opposed to render_action
Guys,
What was the rationale behind moving to the swiss army-ish method of
render(:X), as opposed to the various render_X methods that existed
before?
I find it easier to keep the render_X style in my brain, rather than
trying to remember what the valid parameters to render() are. It''s also
more code completion friendly.
Just curious.
Thanks,
John
--
Posted via
2006 Jan 27
2
Getting gem rdoc via ri?
Guys,
I''m working with the new RadRails release (0.5.3), which has a very
nifty inclusion of ri courtesy of RDT.
Problem is, although I''ve generated rdoc for all installed gems with
"gem rdoc --all", it''s not accessible through ri. I see some posts here
and there about rimport...is this still the necessary way to incorporate
the rails rdoc into ri?
2006 Jan 10
18
Ferret with IMAP dirs
I''d like to use ferret to build an imap indexer and search utility, but
want to check first to see if anyone else is working on this and offer
my help. Anyone?
Also, if you could provide any helpful pointers on indexing directories
via ferret, it''ll be very much appreciated. I''m a lucene nuby.
Thanks!
John
--
Posted via http://www.ruby-forum.com/.
2006 Jan 13
2
uninitialized constant Ferret
I get this error message from the following code:
require ''rubygems''
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/tmp/index'')
index << {:title => "Programming Ruby", :content => "blah blah blah"}
index << {:title => "Programming Ruby", :content => "yada yada
2008 Jul 21
2
Squat indexing a Maildir of over 600 GB?
Guys,
We have a very large maildir for email auditing purposes. It's
currently at 600 GB and continues to grow.
Can dovecot handle this with squat indexing, or am I out of my mind?
Thanks!
John
2005 Nov 15
2
gettimeofday and endless looping
Guys,
We''re having a similar problem to that documented, but not resolved, here:
http://lists.xensource.com/archives/html/xen-users/2005-08/msg00110.html
The python process that runs "/usr/sbin/xend start" has reached 99.9% CPU
utilization.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3569 root 25 0 12952 7876 2456 R 99.9 6.2 13444:26 python
2006 Jan 22
6
Bug in Script.aculo.us'' Ajax.InPlaceEditor?
Guys,
I am likely going to submit this as a bug, but wanted to see if anyone
else is experiencing it. I''m trying to use an Ajax.InPlaceEditor. In
firefox, it works great, but in IE, it adds two form elements when
clicked instead of one.
In other words, you have two text fields, two ok buttons, and two cancel
links after clicking an element to be edited.
This even happens when
2006 Jan 23
6
undefined method assert_valid_keys
Guys,
I''m having trouble understanding why I am getting the following error
message. I''ve double checked my code and everything looks good. Can
anyone share any insight into the message?
Thanks!
John
------------------------------------------------------------------------------
undefined method `assert_valid_keys'' for :hangars:Symbol (NoMethodError)
2006 Jan 18
1
Another uninitialized constant question
Guys,
I''m trying to generate a scaffold to admin a table called hangars. I''d
like the controller to fall with an "admin" sub-module.
I used the command:
script/generate scaffold Hangar Admin::Hangar
This seemed to work, and placed the controller in
controllers/admin/hangar_controller.rb, where I expected to find it. It
also created the hangar.rb model in