search for: expiration_d

Displaying 7 results from an estimated 7 matches for "expiration_d".

Did you mean: expiration
2008 Jun 24
10
Question on passing arguments inside a view.
...called editorials with two actions index and display. I''m trying to pass in a parameter from the results of my search and getting the above error. Example: two tables one is editorial the other fp_directory Editorial Model def self.date_range(from,to) find(:all, :conditions => {:expiration_date => from..to }, :order => ''expiration_date DESC'') end Directory Model def self.full_path(directoryid) find(:all, :conditions => { :j15c_directory_id => "#{directory_id}" }) end I have a view that displays my form and submits output to displa...
2009 Mar 13
2
date_select and HTML options?
I have the following code, but can''t seem to get the class attribute to show up in the generated select elements. I saw something about a bug/patch. However, as am still learning RoR I didn''t want to jump to conclusions. Anyone see anything wrong: <%= f.date_select :expiration_date, :order => [:month, :year], :discard_day => true, :class => "dtfld" %> I''ve also tried: <%= f.date_select :expiration_date, {:order => [:month, :year], :discard_day => true}, :class => "dtfld" %> --~--~---------~--~----~------------~-----...
2008 Jun 07
3
DRY validates_format_of?
In a model I have following validates_format_of. Is there an easy way to DRY this up? It seems to be rather repetitive. validates_format_of :expiration_date, :with => /^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/ validates_format_of :activation_date, :with => /^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/ validates_format_of :some_other_date, :with => /^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/ .... Thanks -- Posted via http://www.ruby-forum.com/...
2004 Dec 13
0
Transfer and keep variables
Is there any way to transfer a call from host to host and keep the call's variables intact? -- specifically, UNIQUE_ID and user created variables like CARD_NUMBER, EXPIRATION_DATE, and CVV2? Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST Newline pagesteve@sedwards.com Fax: +1-760-731-3000
2007 Jun 21
2
expects with returns that returns the return value of the actual method
...al return value provided if you called the non mocked purchase method. Is this possible? def test_charge gateway = ActiveMerchant::Billing::Base.gateway(:bogus).new ActiveMerchant::Billing::Base.mode = :test member = Member.new member.credit_card_number = "1" member.expiration_date = "9/19/2007" member.payment_method = "bogus" member.first_name = "Steve" member.last_name = "Eichert" member.expects(:active_merchant_gateway).returns(gateway) # gateway.expects(:purchase).returns(:non_mocked_return) member.charg...
2007 Jun 21
3
only checking certain parameters for a method
...ethod, does anyone think having a way to say that any value for a parameter which I don''t care about is valid? I''m thinking something like: def test_charge_is_for_10_bucks gateway = test_gateway member = Member.new member.credit_card_number = "1" member.expiration_date = "9/19/2007" member.payment_method = "bogus" member.first_name = "Steve" member.last_name = "Eichert" member.expects(:active_merchant_gateway).returns(gateway) member.expects(:purchase).with(1000, :any).returns(TestResponse.new) me...
2007 Aug 27
0
BIND 8 is EOL as of 27 August 2008 (fwd)
...have BIND 8, and itself is now EOL, the time has come to say good-bye to BIND 8. I will be marking the bind8 (BIND 8.3.7) port FORBIDDEN since it contains the predictable query ID bug. I will also update the bind84 (currently BIND 8.4.7) port to 8.4.7-P1, and mark that port DEPRECATED with an EXPIRATION_DATE 3 months in the future. Users who have heavily loaded BIND 8 installations and are concerned about performance should seriously consider testing FreeBSD 7 and BIND 9.4. That combination (which includes working threads) has demonstrated excellent performance, especially on SMP systems. Please...