How can I detect that test:unit integration tests are being run, so I can
start/stop some background processes once for the duration of all the
integration tests only, but not for unit / functional tests ?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
Is it possible to configure postgresql so that the development
database is on one drive, and the test database is on another drive
(an SSD in this case) ?
Can this be done with database.yml, or some other method ? I'm using
Windows 7.
--
You received this message because you are subscribed to th
Hi,
You could send your email "multi-part". For this you normally need 2
templates - html and txt. In the html template, you can include images
as with normal html, and if the recipient accepts html format emails,
he will see the image (otherwise he gets the txt version). See more
here
http://edg
Also, is there some reason why validates_associated does not throw an
exception on nil ?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this grou
And if it is a duplication, are there any differences, and which
method is best ?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send
In one of my models I have these lines :
belongs_to :user, :validate => true
...
validates_associated :user
When I remove the 2nd one, my tests run noticeably faster. Is the
above causing validations to be run twice ?
--
You received this message because you are subscribed to the Google Gro
Correct url above should be
https://github.com/rails/rails/commit/0c57ae102f938b8f3d14d7cc37ab15b87bdaa4f5
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubsc
I'm currently using Rails 3.1rc5, and deploy with capistrano. During
deploy, I precompile the assets on the server using assets:precompile
after deploy:symlink.
I noticed that "group :assets" gems in my gemfile were being included
in my production application processes (and adding a lot of memory
For clarity, I was referring to the "update" object above being
changed (it's a hash, created by factory girl gems attributes_for
method).
I guess at some point there is Rails code which converts this to
string params for passing to the controller ? Maybe now in 3.1rc1,
this also changes the updat
I've just upgraded from Rails 3.0.7 to 3.1rc5, and am getting some
functional test failures with an existing app.
When I call a controllers create or update action. e.g. :
post :create, :modelname => update
on return, the only integer param passed in has been changed type from
e.g. 30 to "30"
Seems to have been fixed overnight by new bundler version 1.0.17 : see
https://github.com/carlhuda/bundler/issues/1342
On Aug 8, 11:24 pm, sreid wrote:
> I've upgraded a Rails 3.0 app to Rails 3.1. It's working fine on my
> development Windows PC using Webrick / ruby 1.8.7.
>
I've upgraded a Rails 3.0 app to Rails 3.1. It's working fine on my
development Windows PC using Webrick / ruby 1.8.7.
I tried to deploy using Capistrano to a server using Passenger/nginx/
REE, but am getting this error :
* executing "cd /home/.../releases/20110808200618 && bundle install
--gem
Thanks for the suggestions. I ended up using the method described
here :
http://stackoverflow.com/questions/3485059/running-rake-dbmigrate-without-some-initializers
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, s
I've just cloned my rails app onto another PC, and I'm having a
problem getting the database set up.
I've tried rake db:migrate, then db:create and also db:reset, but I
keep getting an SQLException "no such table". It seems this is due to
a line in an initializer which accesses one of my tables.
I just used childs to show it was the plural. Would rails pluralize
child to children ?
All the attributes match correct in both cases - including parent_id -
but not parent. I assume the parent object is not a real attribute, as
only parent_id is shown when I do an inspect.
--
You received this
My problem occurs when trying to modify a parent record from a child,
using an after_create callback in the child is created (they have a
has_many / belongs_to association).
After some more testing (checking object ids), I can get a test to
pass if I use (e.g.) :
1) Child.create(:parent => parent
Is there some way to get a list of the existing instances which refer
to the record ?
Would upgrading to 3.1 and enabling identity map solve the problem ?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email
I have an issue where I seem (unintentionally) to have more than 1
activerecord object/instance referring to the same database record.
How do I ensure that when I update the record, all instances are
refreshed with the same data ?
It sounds like "identity map" which is being added to activerecord
I've 2 models with a belongs_to / has_many relationship - e.g. Users
has_many Orders.
The problem I have seems related to activerecord caching (which I'm
not 100% clear on).
ex1 :
user = User.create
user.orders.each ... # => (no orders, as expected)
user.orders.create
user.orders.each ... # =>
I've renamed a column in an activerecord table by migrating. I
searched and changed all references from to in source / tests.
However, a lot of my tests now fail with errors of the type :
SQLException ... table has no column named .
I also did a grep and can't find any references to
in the pro
20 matches
Mail list logo