similar to: ActiveRecord''s bundled Transaction::Simple namespace issues?

Displaying 20 results from an estimated 5000 matches similar to: "ActiveRecord''s bundled Transaction::Simple namespace issues?"

2006 Sep 04
10
mongrel proxies waiting endlessly
Sometime my mongrel server threads..would simply stop responding to the requests...and in the logs i get following error: Tue Sep 05 03:56:40 IST 2006: ERROR: Transport endpoint is not connected - getpeername(2) Tue Sep 05 03:59:21 IST 2006: ERROR: Transport endpoint is not connected - getpeername(2) Tue Sep 05 03:59:21 IST 2006: ERROR: Transport endpoint is not connected - getpeername(2) Tue Sep
2006 Feb 10
0
Ferret Trampling Namespace
Greetings. Apologies if I missed something like this in the archives or internet, but I''m having issues using Ferret with Rails. Specifically, I have a class class "Weight" in my application (it happens to be a model). My app runs perfectly fine until it first executes "require ''ferret''". At that point, my definition of the class "Weight"
2006 Feb 13
0
Library (Ferret) Trampling Namespace
Greetings. Apologies if I missed something like this in the archives or internet, but I''m having namespace issues using Ferret with Rails, but this looks to be an issue with any library and Rails. Specifically, I have a model class "Weight" in my application and Ferret also has a class "Weight" in it (Ferret::Search::Weight). My app runs perfectly fine until it first
2007 Aug 24
2
error in rails 1.2.3 activerecord
i''m a rails nuby so i don''t know where to fix this in the activerecord module.... there is no such column in the sys.view.user_constraints. SELECT uc.index_name FROM user_constraints uc WHERE uc.constraint_type = ''P'' this prevents me from doing a rake test:functionals ...as in below.... C:\railsspace>c:\ruby186\ruby\bin\ruby c:\ruby186\ruby\bin\rake
2007 Aug 26
2
ror app with advanced rspec?
Hi! Can anybody link to some ror based project what is using rspec, so nuby as me can learn from it. So it should have updated and practising advanced rspec. After reading last threat about "testing behaviour or testing code?", I just realised that I would definitely learn something from app like that. Some casual googling didn''t help me this time. Thanks! Priit at
2007 Aug 28
3
How do you keep mocks updated without pain?
Hi! I know you must be answering a lot of basic questions, sorry about that :-) However I have not get it, how do you keep mocks updated without pain? I reached to the point where mocking things for view. I spec model-controller-view using "correct doc" way mocking-stubbing (plus I should run integration test to be sure that everything really works together). Now, when I want to
2007 Aug 15
4
nuby: how spec redirect_to at ApplicationController
Good morning rspec people! Still rspec nuby: I must do something wrong obviously. How can I spec about redirect_to at ApplicationController describe ApplicationController do it "method login_required should redirect to home path without login" do pending "I tried to use controller.login_required.should be_redirected and got NoMethodError with nil object
2006 May 24
1
send email from form input
OK, I am a Rails nuby, so please keep that in mind. I want to have a form on a page where users can enter in their email address in one field, a message in a text area field, and when they click "submit" the message should be sent to a static email address, say me@mysite.com. I have read the "HowToSendEmailsWithActionMailer", but I am not sure this is exactly what I need.
2006 Jan 10
2
the dreaded error Before updating scaffolding from new DB s
Hi I am pretty sure that this is a common nuby problem but I cannot figure it out i try to run scfaoldong and get a error "Before updating scaffolding from new DB schema, try creating a table for your model" I have mysql set up and created the tables etc. Derek -- Posted via http://www.ruby-forum.com/.
2006 May 03
2
Conditional statement style
This is a bit of a nuby question methinks but i''ve had a play/search around and it''s just bugging me now :0) Say I have a conditional statement, testing a variable against a number of values. The first way i did this is like so: if myvar != "" and myvar != 0 and myvar != nil # .. code end This seems a bit messy - is there neater way of doing this? I thought of:
2010 Mar 25
0
ActiveRecord::Base.transaction MySQL Lock Errors...
Hi there, is there any known issues when using ActiveRecord::Base.transaction with models who tables have constraints applied? I have two models: one (is associated with model two) two (has MySQL foreign key and unique key constraints) I''m doing something like this: ActiveRecord::Base.transaction one.create two.create(reference to one) one.create two.create(reference to
2009 May 28
3
strange behaviour in ActiveRecord transaction
Hi, I''m using an ActiveRecord transaction in a Rails app, and one of the changes made during the transaction is reverted as the transaction finishes, whilst the other changes are preserved. The code is like: ------------------------ def swap(other) self_number=self.number #==1 other_number=other.number #==2 ActiveRecordModel.transaction do
2007 Apr 06
3
@ vs self in models?
i''ve seen both of these syntaxes before and have also used both in my own models: class Foo def get_bar @bar end end and class Foo def get_bar self.bar end end seemingly with no difference... i''m a nuby though so could anyone enlighten me to the differences if there are any? thanks, jeff --~--~---------~--~----~------------~-------~--~----~ You received
2006 Mar 27
1
Best way about doing this?
Hi All, I''m super a super ruby nuby, so bare with me. I am working on a small app that has a particular form that I am having a rough time figuring out the best to way to handle. Basically here it is, each school has one or more classrooms, and each classroom can have one or more teachers. Here''s what I am trying to do (edit a school): - click on a link to edit a School -
2006 Mar 01
2
error: uninitialized constant
total rails nuby here. I have a table "thumbnails", hence the model Thumbnail. I''m extending the Thumbnail class with a few constants needed for thumbnail cropping: class Thumbnail < ActiveRecord::Base SOURCE_FILE_PATH = "path/to/source" TARGET_FILE_PATH = "path/to/target" TARGET_WIDTH = 100 TARGET_HEIGHT = 100 end Now, in my controller
2006 Jul 13
2
Intel Mac, Rails, MYSQL - access denied
Hi, Nuby on Rails here trying to bring up an existing app on a new installation. The whole ruby/rails/mysql/lighty installation was done per the much touted "hivelogic article" that runs through all the steps. I am running into a permission error when I try to do a rake migrate to set up a session database needed by this existing app. Extracted from the trace... ** Execute
2006 Jan 14
11
nuby: do models have to inherit directly from ActiveRecord?
Hello, I have a few models -- book, cd, dvd -- for which I''d like to have an abstract base superclass to hold some common stuff. That abstract class, I was thinking, would inherit from ActiveRecord. Didn''t work, though, and looking around, I found this: <http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel>
2001 Jul 06
1
Title of bundled packages in the library index (PR#1017)
Full_Name: Henrik Bengtsson Version: 1.3.0 OS: Windows Me Submission from: (NULL) (216.175.122.171) I realized that the title of packages in the library index when they are in a bundle is the title of the bundle and not the package. It looks like the TITLE file, which apparently is used for generating the library index, takes the value of the bundle's title and not the package's title.
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone, I''m a rails & ruby nuby, and this is my first post to the list. Here''s my environment in case it helps diagnose my problem: Ruby version 1.8.4 (powerpc-darwin8.6.0) RubyGems version 0.8.11 Rails version 1.1.2 Active Record version 1.14.2 Action Pack version 1.12.1 Action Web Service version 1.1.2 Action Mailer version 1.2.1 Active Support version 1.3.1 I did
2005 Oct 11
4
Searching an attribute in a hmabtm relationship
(Nuby to Ruby and Rails...) I''ve implemented security using the login generator in a simple app so that I have a user table, a roles table, and a join between them (roles_users). All works as expected. I now need to check if a user has a specific role, but my approach is off somehow. Here''s what I''ve tried thusfar: user_roles = @session[:user].roles