search for: mccleane

Displaying 17 results from an estimated 17 matches for "mccleane".

Did you mean: mcclane
2006 Jul 13
3
Validation question
If I am validating an object before it is saved and do a find(:all) of that object class, will the object which is being validated be returned by the find method? something like: class Resource < ActiveRecord::Base def validate resources = Resource.find(:all) ..do stuff end Will the object I am validating be in the ''resources'' array? Thanks in advance, Don Mc --
2005 Dec 16
3
Purpose of ''yield'' in layout file in Flickr video?
During the excellent flickr video, the presenter adds the following to the applications layout file: <body> <%= yield %> </body> What is the purpose of the ''yield'' line? I would think there would be a content_for_layout tag there instead. Thanks, Don -- Posted via http://www.ruby-forum.com/.
2007 Mar 13
6
comparing two databases with Active Record.
I have two databases in SQLite with the same schema. The other database was populated by an external customer and then returned. I want to use ActiveRecord to do the comparison. I am not sure of the best way to access the tables in each database with ActiveRecord models. I could change the connection dynamically whenever I want to switch between the databases, but this would seem to be clumsy
2006 Jan 05
2
Single stepping from breakpointer?
Once I use breakpointer to get into an irb session, is there a way to single step? Also, is there a command to resume running? Thanks, Don -- Posted via http://www.ruby-forum.com/.
2007 Mar 06
2
Rails 1.2.2 upgrade problem
I was upgrading today from 1.1.2 to 1.2.2. When I attempt to run the ruby script/server process now, I get the errors below. I have looked through the source files, but nothing obvious. The problem may be a constant which now requires an explicit ''require filename'', but don''t know how to find that constant. Any help would be appreciated! Regards, Don McClean **
2006 Jul 26
2
How to determine whether dev,test or prod from the code
When in a controller, how would I determine which environment I am currently running in? (Development,Test,Production) Thanks, Don Mc -- Posted via http://www.ruby-forum.com/.
2004 Nov 28
1
asterisk compile errors - pbx_dundi.c -help
...claration of function `compress' pbx_dundi.c:1397: error: `Z_OK' undeclared (first use in this function) make[1]: *** [pbx_dundi.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/pbx' make: *** [subdirs] Error 1 What does this error mean and can anyone help me?????? Thanks Conor McCleane (Dell Dimension P4 2.8 GHz-HT running SuSE 9.1 Pro) _________________________________________________________________ Sign up for eircom broadband now and get a free two month trial.* Phone 1850 73 00 73 or visit http://home.eircom.net/broadbandoffer
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals, I have the following object that has acts_as_versioned: class Note < ActiveRecord::Base acts_as_versioned belongs_to :user end The schema for my notes table is as follows: create_table :notes, :force => true do |t| t.column :id, :integer t.column :noteshare_id, :integer t.column :user_id, :integer t.column :title, :string
2006 Aug 13
0
More detail SQL logging
I had seen a post on the Ruby of Rails weblog about a tool or plugin which did more detailed logging of all SQL queries (showing the stack trace which initiated each one) than the standard Rails logging. But I can''t find it now that I need it. Does anyone know where I can find it? Thanks in advance. Don Mc -- Posted via http://www.ruby-forum.com/.
2006 Jul 11
1
ActiveRecord ''group'' options does not work with includes?
If I have call a find method where I am using the :include option, my :group option appears to be ignored. Is it true that you cannot use :group with :include ? Thanks in advance , Don Mc -- Posted via http://www.ruby-forum.com/.
2006 Jul 17
2
Getting the original url from a controller action method
Is there a simple way to get the original url which spawned a controller action, including any query parameters? Thanks in advance, Don Mc -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
3
Issuing an ajax request to a different web server?
Is it possible to have an Ajax request go to a different server than the one that originally rendered the web page? I am attempting this, but the ajax server never gets the request. For example, inside a form: <%= submit_to_remote(''add_lead'',''Add Lead(s)'', :url => "http://123.456.789.0:3000/users/add_lead",
2006 Mar 30
0
Polymorphic compatible with HABTM?
Can you use polymorphic with a habtm relationship? If so I would assume the join table would contain both the foreign key and the type for both sides of the table. The API documentation is unclear, although it may be out of date. I would prefer not to. I am trying to model a Person, who may be associated with many different models. A person may also be a member of one or more Teams, each of
2010 May 07
0
Simple way to detect from rails if backgroundrb server is running
Sometimes I forgot to start the backgroundrb server while developing. Requests are added to queue until I remember. Is there a simple way from rails to detect if the server is running and if necessary start it? Thanks, Don Mc
2006 Sep 06
3
Limit Net::LDAP results
Is there a way to limit the number of records that doing a LDAP search will return? I would like to limit to a specific number, say 10. This is to prevent someone from doing a wild card search and returning thousands of records. I can truncate the array after they are returned, but I would rather prevent it in the first case. Thanks in advance, Don Mc
2006 May 09
5
Solaris migration error:Lost connection to MySQL server
We have installed rails 1.1.2 and Ruby 1.8.4 on solaris. When we attempt to run the initial migration we get the following error: Mysql::Error: Lost connection to MySQL server during query: SELECT version FROM schema_info /web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log''
2006 Feb 27
16
Rails 1.1
It was said at one time that Rails 1.1 might be released in February. Is that still likely? Thanks, Don Mc -- Posted via http://www.ruby-forum.com/.