similar to: does not equal conditional

Displaying 20 results from an estimated 10000 matches similar to: "does not equal conditional"

2006 May 02
6
Is there a link_to ''external url''?
I''ve checked the Rails documentation but find no mention of link_to ''external url'' or equivalent. Does rails have a built in method to do this? thanks -Lindsay -- Posted via http://www.ruby-forum.com/.
2006 May 08
3
Can you have multiple before filters?
Hi, Is it possible to specify multiple before filters in a controller... here''s the thing: only one set of filters is to use the :except option. Something like: before_filter :check_for_session_cookie before_filter :validate_user :except =>[''login''] which I use to a) check if the user has returned to the site and has a saved cookie holding login details b) check
2006 Apr 06
10
Advice needed on tracking down unusual error
Does anyone have advice on how to go about locating the cause of this error message: ActionView::TemplateError (wrong number of arguments (3 for 1)) on line #4 of app/views/products/search.rhtml: 4: <%= start_form_tag :action => ''search'' %> I don''t see anything wrong with line 4 above. Some background: I''ve made a number of changes to Controllers,
2006 Apr 29
5
HABTM - how to insert join row when associated rows exist
I have successfully used HABTM to create a many-to-one-to-many set of rows in one step. Now, if two objects I want to associate already exist, how do I create the join row? The Agile book mentions the ''push_with_attributes'' method. The text says this method is useful for adding additional attributes to the join row (in the example a ''read_at'' timestamp). I
2006 Apr 20
2
Is there a problem with Agile code in Web 2.0 chapter?
Hi, I''m running the code example for ''Dynamically Updating a List'' in Agile pages 404-406: When I enter a new to-do, and click ''New Item'', a new page is rendered only displaying the new to-do just entered. This isn''t what''s expected. The to-do list with id="items" should be updated so the to-do list dynamically grows.
2006 Feb 20
4
SHow do you suppress ERB newlines globally
Is there a config flag to suppress the newline at the end of every ERB ''%>'' tag, so it would not be necessary to type ''-%> each time? -- Posted via http://www.ruby-forum.com/.
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say: !>graphic.png! the textile() method will successfully render a right-float image. Now, if I want to escape the user''s text using h(), the ''>'' is turned into an &amp;. Obviously, the image then fails to render in a browser. Is there a work around for this? I guess what I''m really asking
2006 Feb 22
3
Unit test failure - nil object?
I''m following instructions in the Agile book, page 146 for testing an object update to the database. Here''s my code: def test_update assert_equal "jack@smiths.com", @user.email @user.email = "jack@smiths.org" assert @user.save, @user.errors.full_messages.join("; ") @user.reload assert_equal @user.email,
2008 Mar 04
1
help needed on function call
Hi there, I am confused about fucntion call. After defining a function, I called it within another function. dt<-cars; #a copy of R internal dataset "cars" created; dt$cat1<-ifelse(dt$speed<20,0,1); dt$ind<-ifelse(dt$speed<15,1,2); #group variable; freqtot <- function(data,var){ attach(data,warn.conflicts=FALSE) x1 <- data.frame(table(var))
2012 Feb 28
1
group calculations with other columns for the ride
Hello, I can get the median for each factor, but I'd like another column to go with each factor. The nm column is a long name for the lvls column. So unique work except for the order can get messed up. Example: x =
2006 Mar 21
4
Can RoR''s AJAX helpers do this?
Hi, I want to type text into an input field then on enter, use AJAX to update the value of an input field elsewhere on the screen. ''observe_field'' allows me to watch a form field and dynamically update a DIV. Is there a variation or other method to allow me to update a field instead? -- Posted via http://www.ruby-forum.com/.
2006 Jun 21
3
Is this a weird bug with auto_complete?
I think I may have found a bug with the auto_complete feature in rails: My controller has a before_filter with an except clause preventing the filter from running on a specific action. The action renders a view with a text_field_with_auto_complete field. Much to my suprise, the filter appears to run when I type data into this field! The filter is part of my security regime, so I end up with a
2006 Mar 25
3
validates_presence_of validation order?
I have a form with 3 fields: user_id, email and password. All 3 fields are required, so I have a "validates_presence_of :user_id, :email, :password" in my model. Works, but the validation errors show up in a different order than I specificed in the validates_presence_of statement. Is there a way to specify the order in which the validations (and corresponding error messages) should
2006 Jun 27
5
RJS -- What am I missing?
This is driving me nuts:-) I''ve brought it down to a simplified case where I''m rendering this rjs template: page.insert_html :top, ''cat1'', "<li>Some list item</li>" According to FireBug, this is what I''m actually getting in the browser: try { new Insertion.Top("cat1", "<li>Some list
2007 Feb 06
3
Form won't accept ampersand
Hi guys, My start_form_tag generated form will not accept a text field containing an ampersand. For example, the text ''A & B'' is trunacted to ''A'' in the param hash. I know ampersands have to be encoded in URLs, but I''m surprised my form has a problem with this. I''ve tested this in Safari and Firefox. thanks Lindsay -- Posted via
2011 Jan 17
2
matrix manipulations
Hi, I am having some difficulties with matrix operations. It is a little hard to explain it so please bear with me. I have a very large data set, large enough that it needs to be split in parts in order to deal with. I can work things on these "parts" but the problem lies in adding together these parts for the final answer. So that been said, let's say that i split the data in 2
2010 Jul 28
1
error: arguments imply differing number
mydata <- read.table(textConnection(" Id cat1 location item_values p-values sequence a111 1 3002737 100 0.01 1 a112 1 3017821 102 0.05 2 a113 2 3027730 103 0.02 3 a114 2 3036220 104 0.04 4 a115 1 3053984 105 0.03 5 a118 1 3090500 106 0.02 8 a119 1 3103304
2009 Dec 02
1
Lattice: multiple data sets on same plot
Hi, I have two data sets; one is a population and the other a sample of that population. I am trying to plot both on the same trellis display. # Example data set with two numerical attributes and two categorical pop <- data.frame(var1=rnorm(2000, 2000, 500), var2=rnorm(2000, 2000, 500)) cat<-(runif(2000)<=.5)+0 for(i in 1:length(cat)){ if(cat[i] == 0){ pop[i,"cat1"] =
2010 Jul 14
1
Dot Plot with Confidence Limits
Hi, I have the following dataset and I would like to create a dotplot with confidence limits: CAT1 CAT2 MEAN Lower Upper 1 1 1 0.619 0.392 0.845 2 1 10 1.774 1.030 2.518 3 1
2006 Jan 07
10
RMagick bus error on OS X in console mode
This is a strange bug that I''ve never seen before. It only shows up when I run the app through the console (the app is Family Connection, and it works fine when run as a web app): 22$ ruby script/console Loading development environment. >> User /opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.3.0/ RMagick.bundle: [BUG] Bus Error ruby 1.8.2 (2004-12-25)