search for: grofi9f2ete4oy6ej3vmakxock334eze

Displaying 5 results from an estimated 5 matches for "grofi9f2ete4oy6ej3vmakxock334eze".

2007 Sep 17
8
DISTINCT?
This should be easy, but I''m stumped... class X < ActiveRecord::Base belongs_to :y end class Y < ActiveRecord::Base has_many :x end The y table has a column names. The x table has a column value. I want the list of values in x for the name "Location" in y. Yes, there are many repetitions. I can probably hack together an SQL statement to do this without too much
2008 Mar 10
2
response.body == filename?
I''m using RSpec. describe UserController do it "should require ..." do post :login, {:name => ''root''} puts response.body.to_yaml end end ....--- user/login ????? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2007 Sep 04
2
Use of uniqueidentifer type for primary key?
I''m working on a legacy SQL db. It is distributed, to they are using the uniqueidentifier type for the primary key. At first, at least, I won''t be updating records, but I''m seeing a lot of negativity about using anything other than incrementing integers for the pk--which are obviously inadequate for this environment. It is enough to use set_primary_key? Do I need
2007 Nov 28
0
Where to override ActiveRecord::ConnectionAdapters::SQLServerAdapter?
I''m working on an existing global database running on MS SQL Server. The appropriate primary key is uniqueidentifier, so I want to set ActiveRecord::ConnectionAdapters::SQLServerAdapter#native_database_types[:primary_key] = "uniqueidentifier NOT NULL newid() PRIMARY KEY". Obviously, I need to override the native_database_types definition, but I really don''t know where
2007 Nov 19
1
Capistrano in InstaRails bombs?
Following the book, I try: cap --apply-to C:\CapPlanner\trunk\Source capplanner And get in reply: C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1443:in `complete'': invalid option: --apply-to (OptionParser::InvalidOption) from C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1441:in `catch'' from C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1441:in `complete''