Displaying 20 results from an estimated 2000 matches similar to: "Unit test fails on different line the second time it''s run"
2006 Mar 25
1
Re: Rails Digest, Vol 18, Issue 656
Here''s an alternative in-depth treatment on setting upo rails on Debian
(Ubuntu, Kubuntu, ... ), may be interesting to follow through in more detail
for some:
The Perfect Rails/debian/lighttpd Stack... (
http://brainspl.at/pages/perfect_vps )
Victor Kane
http://awebfactory.com.ar
On 3/25/06, rails-request@lists.rubyonrails.org <
rails-request@lists.rubyonrails.org> wrote:
>
2019 May 31
9
[Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)
https://bugzilla.mindrot.org/show_bug.cgi?id=3017
Bug ID: 3017
Summary: ExitOnForwardFailure=yes doesn't work for local
forwards (-L)
Product: Portable OpenSSH
Version: 7.6p1
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: ssh
2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
Hi,
Every once in while I have to run SQL by hand, in my models mostly. But
I''m wondering if there is a better way of doing it than I do. And, I
have a question concerning types of the fields in the result the query
produces.
First, about the types. In a certain model, to get and return the value
of a boolean function, I have to do:
result =
2005 Dec 15
3
define_method with parameters
Hi,
I''m trying to write a macro which defines methods. One of these should
have a parameter, but I can''t get that to work. Something like:
define_method("printstuff") do
puts "blabla"
end
works fine. But, how do I use define_method to create something like:
def printstuff(the_stuff)
puts the_stuff
end
Thanks in advance.
2015 Nov 04
4
Find me macro - calling multiple people to get a hold of one
Hi list,
We're trying to set up a phone number that customers can call to get a hold of anyone of a group of sysadmins (and not their voice mails!). We found the findme example ([1]) that makes the callees press 1 to accept the call. It almost works, but it doesn't work correctly when one of the callees, the sysadmins, hangs up after accepting the call.
We're using this
2006 Apr 08
4
Calling validates_inclusion_of out of default namespace
Hi,
I''m trying to run the "validates_inclusion_of" method in a before_save hook,
because the range is dependant on the related data. But I can''t figure out how
to call it. When calling it normally, it says it can''t find it.
I''ve tried several combinations like
"ActiveRecord::Validations.validates_inclusion_of", but I can''t seem to
2006 Apr 08
7
text_field and arrays
Hi,
I''m trying to do a bulk update on an array with the helper text_field.
I''m trying to create an inputfield for every object in the array, but
I''m not getting it right...
example:
class ClassA
@arrayB[]
end
HTML (code with error):
<% 0.upto(9) do |index| %>
<%= text_field ''ClassA'', ''arrayB[index]'' %>
non
2006 Apr 06
4
using two foreign keys to the same table
i am working on a task manager with ruby on rails. it is my first major
project, so i''m still gettng my feet wet as i learn.
i''ve been trying to use the built in relationships to link my tables
together, but i''m not able to use the same naming conventions. for each
task, it has a field for the creator, and another field for the
assignee. both of these fields
2006 Apr 06
3
Inserting parent_id
I have two tables:
- projects
- lines
lines has a foreign key constraint to projects.id
When I''m creating a new line object, the database fails on insert with
the following error:
"PGError: ERROR: null value in column "project_id" violates not-null
constraint"
My code looks like this:
def create_lines
@project = params[:id]
@line =
2007 Jun 06
7
RadRails vs. Textmate
Is there anyone out there can give me a comparison between RadRails/
Aptana and Textmate? I have been using skEdit for all of my general
coding stuff, but I am now looking into getting a new editor for my
Ruby/Rails work. I know that most Mac users swear by Textmate, but I
would really like to hear some comparisons between RadRails, Textmate,
and even skEdit as well.
What your thoughts and
2006 Mar 03
4
DB data type enforcement in Active Record
I have a question about how ActiveRecord handles data types.
When I enter text in a text_field (meaning, a field in the GUI) which
belongs to a numeric field in the database, Active Record automaticly
converts it to 0, because that''s what the to_f/to_i method of a string
does. Is it also possible to have Active Record enforce the types, so
that when you enter text for a numeric
2006 Apr 19
6
undefined method `create_table'' for #<LoginController:0x5e60
I am geeting the foolowing error.
undefined method `create_table'' for #<LoginController:0x5e60110>
I wrote the crete action in application controller.
I am coping ther total worng please help me!
class ApplicationController < ActionController::Base
model :cart
model :line_item
before_filter :authorize
def create
# create_table() yields a TableDefinition instance
2006 Apr 08
5
Creating sub actions
Hi,
So finally I have also decided to roll my engines on Rails. But I am
kind of stuck in a situation. I understand that for every model there is
a controller class. This controller class has cirtain set of methods
where each method defines cirtain action to be performed. And each of
this action renders cirtain UI.
[The background]
Now let say I have a object "Car". Apart from
2006 Apr 08
4
Stack level too deep error :(
Hi,
If anyone has some time to help with my problem that would be really good :)
I am getting a "stack level too deep" error when saving an object to the
database when it is has a has_one relationship to another object I wish
to save and associate after it.
If goes a little like this
class Quote < ActiveRecord::Base
belongs_to :eventdetail
has_many :bookings
# An
2006 Mar 25
4
the textilize method
I saw the guy in the 15 min blog video calling a method called textilize
however when i call it rails says it cant find this method. Is this
somehting extra i have to install to ruby... like a gem or somehting
--
Posted via http://www.ruby-forum.com/.
2006 Apr 09
8
Testing (ignore)
Just testing the gateway... plz ignore.
--
Posted via http://www.ruby-forum.com/.
2011 Sep 05
5
Bug#640500: xen-hypervisor-4.0-amd64: xend invokes oomkiller and reboots machine when creating DomU's
Package: xen-hypervisor-4.0-amd64
Version: 4.0.1-2
Severity: normal
Tags: upstream
When creating Xen DomU's, at some point xend invokes the oom-killer and
the entire machine restarts:
Sep 5 12:04:59 arbiter kernel: [259697.101212] __ratelimit: 136
callbacks suppressed
Sep 5 12:04:59 arbiter kernel: [259697.101218] xend invoked oom-killer:
gfp_mask=0x200da, order=0, oom_adj=0
Sep 5
2006 Jan 03
3
SwitchTower and Subversion branches
I''m working on a Rails project that needs to be deployed in the near
future. To enable prompt responses to bug reports, me and my coding
partner were thinking to use the following SVN repository
lay-out/policy.
We''re using trunk/ for our main-line development. Whenever we deploy
something from our trunk, we first want to make a branch (e.g.
branches/1.x) and then derive a tag
2006 Apr 06
3
Irreversible Migrations
Hi,
To make a migration irreversable, one has to execute "raise
IrreversibleMigration". This is how it''s documented everywhere. However,
when I do that, I get this:
rake aborted!
uninitialized constant IrreversibleMigration
This is the migration (the file is called 022_ldap_fix.rb):
class LdapFix < ActiveRecord::Migration
def self.up
execute File.open(
2006 Apr 08
1
text_field behaviour with validations
Hi,
The text_field method sets the class of the field to "invalid" when the object
you specified is invalid (when using validations). This is to facilitate
working with validations.
Is there anything else it does? In a certain non-standard situation I''m forced
to use text_field_tag, instead of text_field. This means I have to take care
of the validations myself as well.