similar to: undefined method stupidity

Displaying 20 results from an estimated 4000 matches similar to: "undefined method stupidity"

2006 Jul 07
7
Sequencing control with edit method in CRUD examples
I have been playing with the cookbook type of tutorials building a fish tournament scoring piece and am having a bit of a problem with a DB field called "points" in my "catch" table that is not input by the user but is calulated based on a "size" field that is input by the user. I have the following in my catch_controller.db def new @catch = Catch.new @fish =
2006 Jul 09
8
find_all order question
How does one properly get find_all to grab the data from the DB table ordered by a specific column? For example: @anglers = Angler.find_all This code gets all the angler records and they are sorted in order of the id field which is of course set as a primary key in the DB (mysql). I''d really like to pull the data from the DB sorted in the order of another field, for example
2009 Jul 21
2
About Error handler
Hi I am new to ruby on rails I need to know one thing Is there any way to externalize all the error messages in one file and access -- Karthik.k Mobile - +91-9894991640
2006 Jul 20
3
Does Find also tell you a count of the array size?
When I use @persons = Find(:all) (for example) and I get back an array of persons, is there an easy way to tell how many rows the find returned? I have been using Persons.count(:all) but you would think Find knows how many it returned -- is the count/array size stored somewhere in the ret array? -- Posted via http://www.ruby-forum.com/.
2006 Jul 11
3
LoginGenerator Killing Me ;)
OK I have dents in my head from beating on LoginGenerator, so if anyone who has used this thing can shed a little light I would greatly appreciate it. It is installed and I have set it up on my User class. Folks can login, logout, etc just fine. I have am not using the per method protection model yet, as I am trying to migrate slowly ;) What is broken though are all my methods that save or
2006 Jul 10
10
IE vs Firefox -- http:// matters?
I just noticed something interesting (or not) about getting to my RoR app on the 2 browsers. I''ve tested it running Webrick or Mongrel_rails and get the same behavior. The app is at http://www.mydomain.com:myport#/app/list Specifying that complete URL works fine in both browsers. However in IE if you just specify www.mydomain.com:myport#/app/list I get page not found. In FF the URL
2006 Jul 24
3
Confused on URLs to my Rails App
I need a VERY SIMPLE solution to get to my rails app. We have a WHM/Cpanel linux server with numerous virtual servers on it. I have an existing website called www.mydomain.com that lives in /home/mydomain/public_html. I have written a rails app called "test" that is in /home/mydomain/test, and it''s rails "root" is therefore /home/mydomain/test/public. I am an
2009 Jul 23
2
Navigate to Index page of a package from R command prompt
Hi all, Is there a way to navigate directly to the "Index" page of help for a package? Here's my connundrum: I download and install package "foo". I don't know what functions are in package "foo", so I can't invoke the help for package "foo" via > ?someFunction help(package = "foo") pops up some non-hyperlinked information page,
2009 Aug 18
2
Embedding lists in matrices and matrices in lists
Hi, I'm new to programming, new to R and even new to mailing lists so please be patient with me. I need to manage many matrices generated by an R program. These matrices have different dimensions and I'd like to group them somehow. The best way would be to have a big matrix (let's call it database) where every element database[x,y] consists of a list of matrices that all have the
2006 Aug 15
2
PHP files in myapp/public question
I am running mongrel and put some php code in myapp/public, but for some reason they are being treated as html instead of being evaluated by the php interpreter. What do I need to do to get these files treated properly? -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
7
file_column repository broken?
I really want to try out file_column but the repository seems to be down for me. I added it to my repository list and script/plugin is unable to see anything in it. I downloaded an archive from the website but it is not clear to me which files need to be installed to which subdirs of my RoR project. Anyone else having this issue with the repository? I am able to see other repositorys no
2004 Dec 26
3
pdc dont save the profile
hi list, this is my smb.conf and it work fine for me but it doesent save the profile on the server any idear why? [global] # Identifikation des Servers und der Arbeitsgruppe workgroup = pinguin netbiosname = SAMBA_PDC server string = Samba %v (PDC) @ test.de # Grundeinstellungen f<FC>r die einzelnen Shares. Um eine h<F6>here Sicherheit zu gew<E4>hren, wird global erst
2012 Nov 10
6
Suggestion: `before_save on: :create` should either work or raise an exception
There''s a small inconsistency in ActiveRecord''s callback syntax that has tripped me up before. It wouldn''t be a big deal, but it can lead to a silent failure. I''d like to suggest that it either be made consistent or be made to fail loudly. The issue is that to do something before validating, but only when creating, you use `before_validation on: :create`,
2009 Aug 22
3
Help on comparing two matrices
Hi, I need to compare two matrices with each other. If you can get one of them out of the other one by resorting the rows and/or the columns, then both of them are equal, otherwise they're not. A matrix could look like this: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0 1 1 1 0 1 1 0 [2,] 1 1 0 0 0 1 0 1 [3,] 1 0 1 0 0
2006 May 17
6
ActiveRecord#to_param
Hello, to implement some some kind of optimistic locking, I want to build a view, where an object is displayed together with a link containing the data of the displayed object. My first try looked something like <%= object.object_discription %> <%= link_to "action", :action => "take_action", :data => object %> this won''t work because object is of
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be existing.I
2006 Aug 14
3
Need copy of Wiki Page on phpBB integration and signon
I am in Wiki hell thanks to the morons that are spamming the wili. I went to check on the articles for integrating with phpBB as I was going to code it today and it is gone. The back in time function doesn''t work either. Does anyone have a copy of the wiki from this page? HowtosDoSingleSignOnWithPHPbb -- Posted via http://www.ruby-forum.com/.
2006 Jul 13
1
Where should method shared btwn controllers go?
I have a method I would like multiple controllers to share. Where does it belong? I have it in a file in lib for the moment. It seems it should be here or in controller/application.rb. Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2009 Feb 07
5
before_save :strip_whitespace => saves with spaces
i used this private function for removing leading and trailing white spaces from the values.that below function would be called before_save. when i print the value after it strips.it prints string without any spaces.but in the table fields it saves with spaces . waht would be the problem.pls help me class CompanyInfo < ActiveRecord::Base before_save :strip_whitespace def strip_whitespace
2008 Jun 29
3
Working around/with Restful Authentication
I''m using Restful Authentication, and the code to create a user is pretty straight forward - there is a before_save action and a before_create action: before_save :encrypt_password before_create :make_activation_code But for some reason when I try to create a user programmatically in the controller like this: User.new(:email =>