search for: coupon

Displaying 20 results from an estimated 78 matches for "coupon".

2008 Jan 23
18
Not seeing the failure
All, I''m missing something simple, I think. I am writing a spec to say that my CouponController should create a new coupon from the form parameters, then set the current user. Here''s the spec: describe CouponController, "When posting to save_coupon" do before(:each) do @expectedName = "pepper''s" @expectedAmount = 5 coupon = mock...
2008 Jan 15
4
Okay, I''m finally asking for help
Hi, all! I would love if someone could help me figure this out. I can''t seem to see why the following fails: Here''s the spec: it "should redirect back to the index page" do Coupon.should_receive (:new).with({"name"=>@expectedName,"amount"=>@expectedAmount}).and_return(@coupon) @coupon.should_receive(:save) response.should redirect_to(:action => ''index'') post ''save_coupon'',{:coupon=>{:name=>@ex...
2011 Feb 09
1
help with operations inside matrix
Hello World! I'm working on my thesis right now (something about financial immunization) I'm currently working in the basics, doing a matrix that lists the present value (or weight) of every combination of coupon rate and term to maturity, this is the code I have right now which is giving me a "longer object length is not a multiple of shorter object length" #start rm(list=ls()) #test yrt <- c(0.065,0.069,0.075,0.082) coupon <- c(0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12)...
2006 Feb 18
2
Conversion to Adjacency Matrix
I have data in the following form: ID COUPON0 COUPON1 COUPON2 COUPON3 1 1 1000 1001 1002 2 2 NA NA NA 3 1000 1003 NA 1004 4 1001 NA 1005 NA 5 1002 NA NA NA 12 1003 NA NA 1006 7 1005 NA NA NA 8 1004 1007...
2006 Jun 26
1
Designing a Coupon System
I''m racking my brain trying to figure out a good method for a coupon system for our ecommerce site. Basically We have a variety of consditions for certain coupons and a variety of effects. Some examples: 1. 5% off any order 2. Free shipping on orders over $50 3. Free shipping on an order if a product foo is part of the order 4. 10% off product foo 5. 5% off ent...
2011 Apr 20
1
New Codeweavers CrossOver discount dealcode coupons avaliabl
The folks over at CodeWeavers have given us two new dealcodes. :) A dealcode is coupon code that can be used in their online store. The two new dealcodes are "EmulateMe" this dealcode is good for a 15% discount on CrossOver or CrossOver Games for Mac and Linux. The second dealcode is "CxForLess" and it will get you a 10% discount on any product in their store. Th...
2011 Sep 02
0
Re: New Codeweavers CrossOver discount dealcode coupons avaliabl
Avent Coupons can go a long way in improve the quality of your child?s well being. The best way to look out for these coupons is on internet. But that does not mean it is the only way. These are available in America?s finest magazines about parenting and child upbringing. But still there is no denying that fact...
2008 Jan 13
10
.html.erb files and autotest
...doesn''t understand the file to map it to the right test. I wanted to submit a patch for this, but I''m unsure where the specs would be to update. I found the necessary mapping in rspec_autotest.rb, but I can''t find any specs anywhere. Help? I just need to have /app/views/coupon/index.html.erb to map to /spec/views/coupon/index_spec.rb -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/atta...
2023 Aug 01
2
Plotting Fitted vs Observed Values in Logistic Regression Model
...176), ratio = c(0.2, 0.422, 0.782, 0.294, 0.244, 0.62, 0.686, 0.352)), row.names = c(NA, -8L), class = "data.frame") A brief description of the dataset: Index: is just a column that shows the ID of each observation (row) x: is a column which gives information on the discount rate of the coupon n: is the sample or number of observations r: is the count of redeemed coupons ratio: is just the ratio of redeemed coupons to n (total number of observations) #Fitting a logistic regression model to response variable y for problem 13.4 logistic_regmod2 <- glm(formula = ratio~x, family = binomi...
2017 Oct 03
1
Multiple test of proportion in r
Dear all I'm currently facing the following situation. We have run a marketing campaign providing to some members one of two type of coupones. In addition to this, some of these members were already touched in the short past by another campaign. So I have the following dataset, where: -mixpre3M= is a flag variable telling us if the customer had already purchased somethign in the past bono recibido: is the kind of coupon recived by t...
2012 Dec 26
2
has value in a console but it's nil in my controller and my view?
...nt.last Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."user_id" = 10 => [#<Payment id: 37, bank_name: "Mercantil", plan: "Plan Uno", date: "2012-12-25", reference_number: "3452435", coupon: "", user_id: 10, created_at: "2012-12-25 21:56:12", updated_at: "2012-12-25 21:58:31", active_until: "2013-01-24">] As you can see, I have one record for my user: 10. If I try to get the same information in my controller I don''t get any excep...
2006 Jul 11
1
counter_cache, has_many and belongs_to
...single object. So why would you need to cache the number of associated objects? Wouldnt the has_many association need the counter cache instead since you never know how many records are linked? Maybe I''m just not understanding something, but here is the snippet I am using: class Coupon has_many :coupon_uses, :counter_cache => :uses_count end Now I could just do "coupon.coupon_uses.size" but there will be very large number of associated objects and would rather not even visit the table if I don''t need to. -- Posted via http://www.ruby-forum.com/.
2005 Dec 17
0
bug? saving (valid) updated object results in validation error
Hi! I have an error that I don''t understand. It shouldn''t be happening, according to the documentation! I have a class, defined as below. > class Coupon < ActiveRecord::Base > belongs_to :product > belongs_to :account > validates_presence_of :product > validates_associated :product > validates_presence_of :voucher > validates_presence_of :price_sold > validates_uniqueness_of :voucher > validates_length_of...
2014 Apr 03
2
How to store interim print results
Dear R forum, Following is an customized extract of a code I am working on. settlement = as.Date("2013-11-25") maturity   = as.Date("2015-10-01") coupon     = 0.066 yield      = 0.1040 basis      = 1   frequency = 2 redemption = 100 # __________________________________________________________________ add.months = function(date, n)  {   nC <- seq(date, by=paste (n, "months"), length = 2)[2]   fD <- as.Date(strftime(as.Date(date), f...
2010 Dec 09
4
Sequence generation in a table
Dear R helpers I have following input f = c(257, 520, 110). I need to generate a decreasing sequence (decreasing by 100) which will give me an input (in a tabular form) like 257, 157, 57 520, 420, 320, 220, 120, 20 110, 10 I tried the following R code f = c(257, 520, 110) yy = matrix(data = NA, nrow = 3, ncol = 6) for (i in 1:3)      {      value = NULL      for (j in 1 : 6)           {
2012 Aug 08
2
RQuantLib: SET_VECTOR_ELT() can only be applied to a 'list', not a 'symbol'
...t;- list(settlementDays=3, calendar="us", dayCounter = "ActualActual", period="Quarterly", businessDayConvention = "Unadjusted", terminationDateConvention= "Unadjusted") coupon <- c(0.0465) CallableBond(bondparams, HullWhite, coupon, dateparams) # ...I get the following error: # ---> SET_VECTOR_ELT() can only be applied to a 'list', not a 'symbol' <--- # Wandering through Internet, I found something similar to my # issue which has been...
2006 Jan 14
12
Dedicated Host Recommendations?
I currently have a dedicated server at ev1servers, but it''s getting rather antiquated (Redhat 9) and am looking to upgrade. I''m thinking about serverbeach.com - one of their CentOS servers. Anybody have any recommendations for dedicated servers on which to run Rails? Hopefully less than $200/month. Thanks! CSN __________________________________________________ Do You Yahoo!?
2012 Jan 21
1
help with couponprinter.exe
I don't have access to a Windows machine at the moment and I have been trying to figure out a way to install the coupon printer from coupons.com on my Linux pc. I have wine 1.3.37 installed but the couponprinter.exe file causes WINE to crash every time that I reach the license agreement window. The "next" button is grayed out and I'm unable to proceed any further. Has anyone had any success in runni...
2006 Nov 23
2
Some tips for testing respond_to block and making controller tests work with simply_helpful
Hi, Here''s two blog posts for those that need to test respond_to blocks and/or are currently using simply_helpful extensively. http://blog.methodmissing.com/2006/11/22/testing-different-content- types-with-rspec http://blog.methodmissing.com/2006/11/23/using-simply_helpful-with- rspec-controller-tests - Lourens
2003 May 19
2
New Ogg HW Player?
('binary' encoding is not supported, stored as-is) I just got this link. They're saying they will (or only the could?) support Vorbis with future Firmware Versions. http://www.frontierlabs.com/NEXIA.html -- Daniel <p>Have you noticed that all you need to grow healthy, vigorous grass is a crack in your sidewalk? --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg