I'm not sure what to make of the sporadic failures. Changing the method names didn't work, but are there any columns in the table that could be in conflict ? Those column names will cause rails to generate a number of methods for the model.
What does this line say (or whatever line number it is after you've modified your model?
/var/www/rails_app/app/models/activity.rb:153
It would be helpful to see any other pertinent code.
Luke
On 2010-10-03, at 4:46 AM, Heinz Strunk wrote:
> Alright, renaming it didn't help but I think I need to make the whole
> thing a bit more clear.
>
> self is an activity which is on a building in the case where it fails.
> I've got about 6 different activities and all work but one. So my test
> executes this activities 100 times to see the success rate etc.
> So the other 5 activities who are pretty much the same work just fine
> and now I put a counter to see when it fails.
> It failed 37th, 49th and 50th time so it doesn't really happen at one
> specific time. Who can this frozen hash thing happen so radomly and only
> in that activity?
>
> When I load and modify the 'activity_target' in the console I can modify
> and update it as I wish (which also works 37-50 times in the test
> though).
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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 email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment