similar to: has value in a console but it's nil in my controller and my view?

Displaying 20 results from an estimated 1200 matches similar to: "has value in a console but it's nil in my controller and my view?"

2005 Feb 03
2
Res: Re: Simple LDAP authentication
OK !! What I should configure in smb.conf in order to use pam_ldap ?? Tanks again !! ---------------------------------------------------------------------------------------- Ruy de Oliveira - Analista de Suporte Mercantil do Brasil S/A Fone: (31) 3489-5960 - Fax: (31) 3489-5001 "Gerald (Jerry) Carter" <jerry@samba.org> 03/02/2005 14:24 Para:
2013 Jun 09
3
Preparación de datos
Hola, ¿como están? Me encuentro haciendo un trabajo de Explotación de Información para la facultad y tengo un inconveniente a la hora de preparar los datos para poder operar con ellos. Tengo un atributo "Titulo Secundario" que cuenta con 139 valores diferentes (al final les dejo algunos de estos valores con la cantidad de ocurrencias de cada uno) y lo que quiero hacer es
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)           {
2005 Feb 03
1
Simple LDAP authentication
Hi friends, I want to authenticate user login to samba with LDAP (NDS in fact), but I can?t change schema of LDAP (I'am not the NDS manager). Can I authenticate user if the BIND to LDAP succed, like in apache (option AuthONBind) ???? I dont want to store user information (home/group/etc) in the LDAP database. Tanks in advance. At
2008 Dec 12
2
get first month of trixbox free
hi; threw the end of the year we are running a promo, when ordering any package on http://gwhosting.net including our vps servers and trixbox servers, you can get your first month off. Yes, that's right, enter "30free" with out the quote signs into the coupon code field during checkout to get your first month free. Give us a try, you won't be sorry. Your security is our
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 =
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
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
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 NA NA 9 1006 NA NA NA 26
2008 Jan 13
10
.html.erb files and autotest
When I work with a .html.erb file, the autotest rspec on rails stuff 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
2006 Jul 11
1
counter_cache, has_many and belongs_to
I am a bit confused about counter_cache here. The API docs http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html say that only the belongs_to association can take the :counter_cache option. When I try to use it on a has_many I get an "unknown key(s): counter_cache" error. Why would this be the case? belongs_to means that this model has a field with an id
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!?
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 entire order if product
2009 Apr 01
3
Nil being coerced to float
I was doing this: @line_items = LineItems.find_all_by_invoice_id(params[:id]) @payments = Payments.find_all_by_invoice_id(params[:id]) @total = @line_items.sum{ |item| item.cost } @payment_total = @payments.sum{ |payment| payment.value } @balance = @total - @payment_total But when no payments had been made it was coming up with an error when trying to sum nil, so I did
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
2012 Aug 08
2
RQuantLib: SET_VECTOR_ELT() can only be applied to a 'list', not a 'symbol'
# Hi all, # trying to run the following example code # from 'RQuantLib' package... HullWhite <- list(term = 0.055, alpha = 0.03, sigma = 0.01, gridIntervals = 40) Price <- rep(as.double(100),24) Type <- rep(as.character("C"), 24) Date <- seq(as.Date("2006-09-15"), by = '3 months', length = 24) callSch <- data.frame(Price, Type,
2009 Aug 31
3
How to deal with PayPal frauds?
I charge my customers through PayPal, but recently faced a fraud which previously had only heard about. Somebody registered a few accounts, paid online with paypal (as my service is only prepaid) and started making expensive long distance calls. In fact the IP registering the accounts was from Florida, and IPs making calls were from Africa. After about 20 minutes the first payment was reversed.
2023 Aug 01
2
Plotting Fitted vs Observed Values in Logistic Regression Model
Dear friends, I hope this email finds you all well. This is the dataset I am working with: dput(random_mod12_data2) structure(list(Index = c(1L, 5L, 11L, 3L, 2L, 8L, 9L, 4L), x = c(5, 13, 25, 9, 7, 19, 21, 11), n = c(500, 500, 500, 500, 500, 500, 500, 500), r = c(100, 211, 391, 147, 122, 310, 343, 176), ratio = c(0.2, 0.422, 0.782, 0.294, 0.244, 0.62, 0.686, 0.352)), row.names = c(NA, -8L),
2010 Feb 01
4
'R' and 'Yield to Maturity'
Dear R helpers   I am calculating the 'Yield to Maturity' for the Bond with following characteristics.   Its a $1000 face value, 3 year bond with 10% annual coupon and is priced at 101. The yield to maturity can be calculated after solving the equation -   1010 = [100 / (1+ytm)]  + [100 / (1+ytm)^2] + [ 1100 / (1 + ytm)^3]   This can be solved by trial and error method s.t. ytm = 9.601%.
2006 Mar 27
1
polymorphism + inheritance
Hi, currently I do some work with polymorphic associations in egde rails class Order < ActiveRecord::Base belongs_to :payment, :polymorphic => true end class CreditCardPayment < Payment end class PayPalPayment < Payment end class Payment < ActiveRecord::Base has_one :order, :as => :payment # common stuff in here end I want to use [Payment] for common functionality