similar to: unused composed_of bits

Displaying 20 results from an estimated 300 matches similar to: "unused composed_of bits"

2006 Feb 27
1
@content_for_sidebar?
Okay, I see this instance variable places, but I can not determine if it is real or where the content comes from. I''ve tried views/<controller>/sidebar.rhtml, _sidebar.rhtml, views/layouts/sidebar.rhtml and views/layouts/_sidebar.rhtml. Does this actually exist? What''s the Rails Way to make a good sidebar? http://www.google.com/search?q=content_for_sidebar Thanks,
2006 Feb 10
0
AJAX update for select list onchange?
Hi Rails Users, I have a select list that I''d like to use to update a div onchange. Right now I just have the div appear, but not update: <%= select_tag( "profiles_select", option_tags = @profiles, { :onchange => "new Effect.Appear(''the_profile'', { duration: 0.5 } );"
2006 Feb 13
2
Ajax.Autocompleter is not a constructor
Hi Rails, I am having trouble setting up an autocomplete text field. Using rails 1.0.0 and just trying to copy the simple scriptaculous demo (http://demo.script.aculo.us/ajax/autocompleter) fails. My view and controller are set up the same way. In firefox 1.0.4 (and safari, don''t remember the version) I get the Ajax.Autocompleter error in the javascript console when loading the
2006 Feb 14
1
Controlling the controller for text_field_with_auto_complete
Hi Rails, I have a text_field_with_auto_complete that I would like to execute in a different model than the view that rendered it. Is there a good way to go about this? Thanks, --Dean -- Take your time, take your chances [3278.7 km, 273.4] Apparent Rennerian -------------------------------------------------------------------------------- It matters not how strait the gate, / How charged with
2005 Dec 17
1
How to use validation with aggregation (composed_of)?
At the risk of being banned for posting the same question twice, I thought I''d try once more with a question for the title rather than a statement (on the basis that perhaps questions get answered and statements ignored ;-) ) ActiveRecord supports composed_of for value objects which is fantastic but one thing that it doesn''t seem to support (or at least I am unable to
2006 Jul 13
1
Incorrect composed_of I think
I am trying to use composed_of in my model, but I not succeeding. With the code I pasted below, I cannot perform this action in the console: property = Property.new(1, "px") I get NameError: uninitialized constant Property when I try to perform that action. It''s not finding my class I made I suppose. The Property class is in the same file as the Element class, element.rb.
2009 Feb 26
1
composed_of, aggregate object isn't saved
I am relatively new to rails and I cannot figure out what is going on here. I am using the composed_of method in an ActiveRecord class to create two aggregate properties: shipping_address and billing_address. The object properties are getting populated from the form and validation is working - no problem. When I call order.save, though, everything is being saved except the address fields. I am not
2006 Jul 11
1
Validating composed_of
Hi, How do I validate a composed_of attribute in my model? I have a product model with: composed_of :price, :class_name => ''Money'', :mapping => %w(cents cents) This maps the price attribute to the Money (http://dist.leetsoft.com/api/money/) class. I want to make sure that the price only contains a price to 2 decimal places i.e. 1.25. This is because if someone enters
2006 Jul 23
0
composed_of and validates_presence_of
I''m using composed_of in one of my models, and I''d like to validate that the attribute is present. class Hand < AR::Base composed_of :level, :mapping => [ %w(sb sb), %w(bb bb), %w(ante ante) ] validates_presence_of :level, :message => "must be set" end The Level class itself is very simple: class Level include Reloadable attr_reader :sb, :bb, :ante
2006 Jan 22
0
Validation on composed_of problem
I am having problems with this: validates_presence_of :amount validates_format_of :amount, :with => Money::PATTERN, :allow_nil => true composed_of :amount, :class_name => Money, :mapping => [[:amount, :to_s]] The problem is when I use this field in a form, and the text is blank, ActiveRecord gives me two errors: "money is invalid" "money
2009 Jan 16
1
Aggregation: problem with uninitialized composed_of object
Hi, I''m getting this error: >> p = Plan.new >> p.amount TypeError: wrong argument type String (expected Fixnum) Apparently this happens because the aggregation isn''t initialized. Here''s the code: class Plan < ActiveRecord::Base composed_of :amount, :class_name => "Money", :converter => Proc.new { |s|
2006 Mar 19
4
Trouble with composed_of
I''m trying to use composed_of within my model. I have a field in my database named ''card1'', which is simply a string. I have this in my model class Player < ActiveRecord::Base composed_of :card1, :class_name => ''Card'' end class Card attr_reader :value, :suit def initialize(s) @value = s[0].chr @suit = s[1].chr end end The
2006 Mar 16
5
TimeZone, TZInfo, daylight savings, and composed_of
Does anyone know the best way to track time zone information. There doesn''t seem to be much documentation on this. So far it seems like a simple db field like create table accounts ( id int unsigned not null auto_increment, name varchar(50) not null, time_zone varchar(50) not null, ... primary key (id) ) and a class like class Account < AR ...
2009 Jan 06
0
[LLVMdev] Heating/Cooling Maintenance Started
Dear LLVMers, The heating/cooling maintenance in our building has started. I peeked into the server room in which the LLVM SVN server is stored, and it's already 81 degrees Fahrenheit in there. Our IT staff will shut systems down once the temperature reaches 84 degrees Fahrenheit Again, I strongly recommend that people not make any SVN commits or Bugzilla changes until the cooling
2010 Feb 12
1
Wierdness in AGI file
Here's part of the output of running an AGI file: -- Playing 'degrees' (escape_digits=) (sample_offset 0) -- Playing 'fahrenheit' (escape_digits=) (sample_offset 0) -- Playing 'wx/humidity' (escape_digits=) (sample_offset 0) -- <DAHDI/1-1> Playing 'digits/40.ulaw' (language 'en') -- <DAHDI/1-1> Playing
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
I made my own RUnit testing convention, and I want to introduce this to one of my friends. Before that, I'd like to review my codes. The problem that I met when I tried to polish my codes is: How can I get the file path in the file??? I.e., I want to get the path to the file that I'm writing using some magic R functions. But I couldn't find any good magic. Is there any magic? So, I
2004 Jan 17
0
New sounds posted
So, per the discussion last week and generous donations, we have some new sound files with which to work. The sounds are located in: http://www.loligo.com/asterisk/sounds/ For those of you who just want to download the _new_ sounds, please fetch: http://www.loligo.com/asterisk/sounds/20040117.newsounds.tar All of the sounds in that tarball are also in the main ../sounds/ directory in
1999 Dec 13
1
Superscript or subscript on Left hand side of symbol
Is there a way to get subscripts and superscripts on the left hand side of a symbol? For example, oC or oF (degree Celsius or Fahrenheit) TIA Partha -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the
2005 Jul 24
1
CESA-2005:587 missing devhelp src.rpm
> src: > devhelp-0.9.2-2.4.6.src.rpm > mozilla-1.7.10-1.4.1.centos4.src.rpm The mozilla src.rpm is there, but the devhelp one seems to be missing from the mirrors.... -- Matthew Miller mattdm at mattdm.org <http://www.mattdm.org/> Boston University Linux ------> <http://linux.bu.edu/> Current office temperature: 76 degrees
2011 Jun 16
1
prediction intervals
Dear members, I'm fitting linear model using "lm" which has numerous auto-regressive terms as well as other explanatory variables. In order to calculate prediction intervals, i've used a for-loop as the auto-regressive parameters need to be updated each time so that a new forecast and corresponding prediction interval can be calculated. I'm fitting a number of these models