Hi , I want to test the one below but I got the problem belongs_to :name, :class_name => "Phrase", :foreign_key => "name" in my test context "test"do should have_many :phrases end in language.rb belongs_to :name, :class_name => "Phrase", :foreign_key => "name" error is 1) Failure: test: check has_many and belongs_to association should have many languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ shoulda-2.11.3/lib/shoulda/context.rb:324]: Expected Phrase to have a has_many association called languages (Language does not have a phrase_id foreign key.). Expected block to return true value. I dont really understand what it''s warning now.. Yennie -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 11 July 2011 17:05, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi , > > I want to test the one below but I got the problem > > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > > in my test > context "test"do > should have_many :phrases > end > > in language.rb > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > > error is > > > 1) Failure: > test: check has_many and belongs_to association should have many > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > shoulda-2.11.3/lib/shoulda/context.rb:324]: > Expected Phrase to have a has_many association called languages > (Language does not have a phrase_id foreign key.). > Expected block to return true value. > > > I dont really understand what it''s warning now..It might help us if you showed us the failing test. Also I think it would be better to use name_id as the foreign key for language belongs_to :name. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On Jul 11, 12:13 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 11 July 2011 17:05, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > Hi , > > > I want to test the one below but I got the problem > > > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > > > in my test > > context "test"do > > should have_many :phrases > > end > > > in language.rb > > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > > > error is > > > 1) Failure: > > test: check has_many and belongs_to association should have many > > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > > shoulda-2.11.3/lib/shoulda/context.rb:324]: > > Expected Phrase to have a has_many association called languages > > (Language does not have a phrase_id foreign key.). > > Expected block to return true value. > > > I dont really understand what it''s warning now.. > > It might help us if you showed us the failing test. Also I think it > would be better to use name_id as the foreign key for language > belongs_to :name. >> Colinmodel language.rb class Language < ActiveRecord::Base belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name" end model phrase.rb has_many :phrases, :class_name => "Phrase", :foreign_key => "category_id" belongs_to :category, :class_name => "Phrase" has_many :languages end test file phrase_test.rb context "check has_many and belongs_to association" do should belong_to :category should have_many :phrases should have_many :languages end error Started ..........F....................................... Finished in 1.313199 seconds. 1) Failure: test: check has_many and belongs_to association should have many languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ shoulda-2.11.3/lib/shoulda/context.rb:324]: Expected Phrase to have a has_many association called languages (Language does not have a phrase_id foreign key.). Expected block to return true value plz help .. thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On 11 Jul 2011, at 17:59, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Jul 11, 12:13 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> On 11 July 2011 17:05, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> >> >> >> >> >> >> >>> Hi , >> >>> I want to test the one below but I got the problem >> >>> belongs_to :name, :class_name => "Phrase", :foreign_key => "name" >> >>> in my test >>> context "test"do >>> should have_many :phrases >>> end >> >>> in language.rb >>> belongs_to :name, :class_name => "Phrase", :foreign_key => "name" >> >>> error is >> >>> 1) Failure: >>> test: check has_many and belongs_to association should have many >>> languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ >>> shoulda-2.11.3/lib/shoulda/context.rb:324]: >>> Expected Phrase to have a has_many association called languages >>> (Language does not have a phrase_id foreign key.). >>> Expected block to return true value. >> >>> I dont really understand what it''s warning now.. >> >> It might help us if you showed us the failing test. Also I think it >> would be better to use name_id as the foreign key for language >> belongs_to :name. >> > >> Colin > > model language.rb > class Language < ActiveRecord::Base > belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name" > end > > model phrase.rb > has_many :phrases, :class_name => "Phrase", :foreign_key => > "category_id" > belongs_to :category, :class_name => "Phrase" > > has_many :languages > end > > test file phrase_test.rb > context "check has_many and belongs_to association" do > should belong_to :category > should have_many :phrases > should have_many :languages > end > > error > > Started > ..........F....................................... > Finished in 1.313199 seconds. > > 1) Failure: > test: check has_many and belongs_to association should have many > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > shoulda-2.11.3/lib/shoulda/context.rb:324]: > Expected Phrase to have a has_many association called languages > (Language does not have a phrase_id foreign key.). > Expected block to return true value >The test claims to be failing because the languages table does not have a phrase_id column. Does it? Fred> > plz help .. thanks > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jul 11, 2:59 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 11 Jul 2011, at 17:59, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > On Jul 11, 12:13 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > >> On 11 July 2011 17:05, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >>> Hi , > > >>> I want to test the one below but I got the problem > > >>> belongs_to:name, :class_name => "Phrase", :foreign_key => "name" > > >>> in my test > >>> context "test"do > >>> should have_many :phrases > >>> end > > >>> in language.rb > >>> belongs_to:name, :class_name => "Phrase", :foreign_key => "name" > > >>> error is > > >>> 1) Failure: > >>> test: checkhas_manyandbelongs_to associationshould have many > >>> languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > >>> shoulda-2.11.3/lib/shoulda/context.rb:324]: > >>> Expected Phrase to have ahas_manyassociationcalled languages > >>> (Language does not have a phrase_id foreign key.). > >>> Expected block to return true value. > > >>> I dont really understand what it''s warning now.. > > >> It might help us if you showed us the failing test. Also I think it > >> would be better to use name_id as the foreign key for language > >>belongs_to:name. > > >> Colin > > > model language.rb > > class Language < ActiveRecord::Base > >belongs_to:phraes, :class_name => "Phrase", :foreign_key => "name" > > end > > > model phrase.rb > >has_many:phrases, :class_name => "Phrase", :foreign_key => > > "category_id" > > belongs_to:category, :class_name => "Phrase" > > > has_many:languages > > end > > > test file phrase_test.rb > > context "checkhas_manyandbelongs_to association" do > > should belong_to :category > > should have_many :phrases > > should have_many :languages > > end > > > error > > > Started > > ..........F....................................... > > Finished in 1.313199 seconds. > > > 1) Failure: > > test: checkhas_manyandbelongs_to associationshould have many > > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > > shoulda-2.11.3/lib/shoulda/context.rb:324]: > > Expected Phrase to have ahas_manyassociationcalled languages > > (Language does not have a phrase_id foreign key.). > > Expected block to return true value > > The test claims to be failing because the languages table does not have a phrase_id column. Does it? > > Fred > >I have language table id name (integer) language_name (varchar) phrase table id name (varchar) category_id (integer) I have name as references to phrase.. can anyone help me plzz??> > > > > > > > > plz help .. thanks > > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
model language.rb class Language < ActiveRecord::Base belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name" end Id phrase misspelled? T On Jul 12, 1:13 pm, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jul 11, 2:59 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > > > > > On 11 Jul 2011, at 17:59, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On Jul 11, 12:13 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > >> On 11 July 2011 17:05, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >>> Hi , > > > >>> I want to test the one below but I got the problem > > > >>> belongs_to:name, :class_name => "Phrase", :foreign_key => "name" > > > >>> in my test > > >>> context "test"do > > >>> should have_many :phrases > > >>> end > > > >>> in language.rb > > >>> belongs_to:name, :class_name => "Phrase", :foreign_key => "name" > > > >>> error is > > > >>> 1) Failure: > > >>> test: checkhas_manyandbelongs_to associationshould have many > > >>> languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > > >>> shoulda-2.11.3/lib/shoulda/context.rb:324]: > > >>> Expected Phrase to have ahas_manyassociationcalled languages > > >>> (Language does not have a phrase_id foreign key.). > > >>> Expected block to return true value. > > > >>> I dont really understand what it''s warning now.. > > > >> It might help us if you showed us the failing test. Also I think it > > >> would be better to use name_id as the foreign key for language > > >>belongs_to:name. > > > >> Colin > > > > model language.rb > > > class Language < ActiveRecord::Base > > >belongs_to:phraes, :class_name => "Phrase", :foreign_key => "name" > > > end > > > > model phrase.rb > > >has_many:phrases, :class_name => "Phrase", :foreign_key => > > > "category_id" > > > belongs_to:category, :class_name => "Phrase" > > > > has_many:languages > > > end > > > > test file phrase_test.rb > > > context "checkhas_manyandbelongs_to association" do > > > should belong_to :category > > > should have_many :phrases > > > should have_many :languages > > > end > > > > error > > > > Started > > > ..........F....................................... > > > Finished in 1.313199 seconds. > > > > 1) Failure: > > > test: checkhas_manyandbelongs_to associationshould have many > > > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > > > shoulda-2.11.3/lib/shoulda/context.rb:324]: > > > Expected Phrase to have ahas_manyassociationcalled languages > > > (Language does not have a phrase_id foreign key.). > > > Expected block to return true value > > > The test claims to be failing because the languages table does not have a phrase_id column. Does it? > > > Fred > > I have language table > id > name (integer) > language_name (varchar) > > phrase table > id > name (varchar) > category_id (integer) > > I have name as references to phrase.. > can anyone help me plzz?? > > > > > > > > > > > > plz help .. thanks > > > > -- > > > 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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. > > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > For more options, visit this group athttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On 11 July 2011 17:59, Yennie <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Jul 11, 12:13 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> On 11 July 2011 17:05, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > Hi , >> >> > I want to test the one below but I got the problem >> >> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" >> >> > in my test >> > context "test"do >> > should have_many :phrases >> > end >> >> > in language.rb >> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" >> >> > error is >> >> > 1) Failure: >> > test: check has_many and belongs_to association should have many >> > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ >> > shoulda-2.11.3/lib/shoulda/context.rb:324]: >> > Expected Phrase to have a has_many association called languages >> > (Language does not have a phrase_id foreign key.). >> > Expected block to return true value. >> >> > I dont really understand what it''s warning now.. >> >> It might help us if you showed us the failing test. Also I think it >> would be better to use name_id as the foreign key for language >> belongs_to :name. >> > >> Colin > > model language.rb > class Language < ActiveRecord::Base > belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name"You have misspelt phrase (you have phraes).> end > > model phrase.rb > has_many :phrases, :class_name => "Phrase", :foreign_key => > "category_id" > belongs_to :category, :class_name => "Phrase" > > has_many :languagesI *think* you have to specify the foreign key here also so that the phrase model knows how to find the associated languages.> end > > test file phrase_test.rb > context "check has_many and belongs_to association" do > should belong_to :category > should have_many :phrases > should have_many :languages > end > > error > > Started > ..........F....................................... > Finished in 1.313199 seconds. > > 1) Failure: > test: check has_many and belongs_to association should have many > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > shoulda-2.11.3/lib/shoulda/context.rb:324]: > Expected Phrase to have a has_many association called languages > (Language does not have a phrase_id foreign key.). > Expected block to return true value > > > plz help .. thanks > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On Tue, Jul 12, 2011 at 3:01 PM, Tom <tom.healey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> model language.rb > class Language < ActiveRecord::Base > belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name" > end >I did fix the spelling already belongs_to :phrase, :class_name => "Phrase", :foreign_key => "name"> > Id phrase misspelled? > T > > On Jul 12, 1:13 pm, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Jul 11, 2:59 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > > > > > > > > > > > > > > On 11 Jul 2011, at 17:59, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > On Jul 11, 12:13 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > >> On 11 July 2011 17:05, Yennie <joanne0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > >>> Hi , > > > > > >>> I want to test the one below but I got the problem > > > > > >>> belongs_to:name, :class_name => "Phrase", :foreign_key => "name" > > > > > >>> in my test > > > >>> context "test"do > > > >>> should have_many :phrases > > > >>> end > > > > > >>> in language.rb > > > >>> belongs_to:name, :class_name => "Phrase", :foreign_key => "name" > > > > > >>> error is > > > > > >>> 1) Failure: > > > >>> test: checkhas_manyandbelongs_to associationshould have many > > > >>> languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > > > >>> shoulda-2.11.3/lib/shoulda/context.rb:324]: > > > >>> Expected Phrase to have ahas_manyassociationcalled languages > > > >>> (Language does not have a phrase_id foreign key.). > > > >>> Expected block to return true value. > > > > > >>> I dont really understand what it''s warning now.. > > > > > >> It might help us if you showed us the failing test. Also I think it > > > >> would be better to use name_id as the foreign key for language > > > >>belongs_to:name. > > > > > >> Colin > > > > > > model language.rb > > > > class Language < ActiveRecord::Base > > > >belongs_to:phraes, :class_name => "Phrase", :foreign_key => "name" > > > > end > > > > > > model phrase.rb > > > >has_many:phrases, :class_name => "Phrase", :foreign_key => > > > > "category_id" > > > > belongs_to:category, :class_name => "Phrase" > > > > > > has_many:languages > > > > end > > > > > > test file phrase_test.rb > > > > context "checkhas_manyandbelongs_to association" do > > > > should belong_to :category > > > > should have_many :phrases > > > > should have_many :languages > > > > end > > > > > > error > > > > > > Started > > > > ..........F....................................... > > > > Finished in 1.313199 seconds. > > > > > > 1) Failure: > > > > test: checkhas_manyandbelongs_to associationshould have many > > > > languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/ > > > > shoulda-2.11.3/lib/shoulda/context.rb:324]: > > > > Expected Phrase to have ahas_manyassociationcalled languages > > > > (Language does not have a phrase_id foreign key.). > > > > Expected block to return true value > > > > > The test claims to be failing because the languages table does not have > a phrase_id column. Does it? > > > > > Fred > > > > I have language table > > id > > name (integer) > > language_name (varchar) > > > > phrase table > > id > > name (varchar) > > category_id (integer) > > > > I have name as references to phrase.. > > can anyone help me plzz?? > > > > > > > > > > > > > > > > > > > > > > plz help .. thanks > > > > > > -- > > > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > For more options, visit this group athttp:// > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 13 July 2011 14:29, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Tue, Jul 12, 2011 at 3:01 PM, Tom <tom.healey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> model language.rb >> class Language < ActiveRecord::Base >> belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name" >> end > > > I did fix the spelling already > belongs_to :phrase, :class_name => "Phrase", :foreign_key => "name"So since you have not said I assume it is all now working? If not did you try including the foreign key with has_many :languages, as I suggested? If it is still not working please re-post the code and error exactly as it is now (copy/paste, do not re-type it). Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On Wed, Jul 13, 2011 at 4:25 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 13 July 2011 14:29, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > On Tue, Jul 12, 2011 at 3:01 PM, Tom <tom.healey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> model language.rb > >> class Language < ActiveRecord::Base > >> belongs_to :phraes, :class_name => "Phrase", :foreign_key => "name" > >> end > > > > > > I did fix the spelling already > > belongs_to :phrase, :class_name => "Phrase", :foreign_key => "name" > > So since you have not said I assume it is all now working? > > If not did you try including the foreign key with has_many :languages, > as I suggested? > > If it is still not working please re-post the code and error exactly > as it is now (copy/paste, do not re-type it). > > Colin >It does work at all. it just keeps giving me the same warning .. ~language model class Language < ActiveRecord::Base belongs_to :name, :class_name => "Phrase", :foreign_key => "name" belongs_to :phrase has_many :users end ~ language table id name directions language_name ~phrase model class Phrase < ActiveRecord::Base has_many :languages end ~ phrase table id name category 1) Failure: test: check has_many and belongs_to association should have many languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/shoulda-2.11.3/lib/shoulda/context.rb:324]: Expected Phrase to have a has_many association called languages (Language does not have a phrase_id foreign key.). Expected block to return true value. please help and thanks> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 14:56, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It does work at all. it just keeps giving me the same warning .. > ~language model > class Language < ActiveRecord::Base > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > belongs_to :phrase > has_many :users > end > ~ language table > id > name > directions > language_name > ~phrase model > class Phrase < ActiveRecord::Base > has_many :languages > end > ~ phrase table > id > name > categoryWhy is the foreign key "name"? Is the "name" field in language a text field, or an integer? It needs to be an integer to store the id of the Phrase, and would make more sense as "name_id". -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On Thu, Jul 14, 2011 at 10:01 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 14:56, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > It does work at all. it just keeps giving me the same warning .. > > ~language model > > class Language < ActiveRecord::Base > > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > > belongs_to :phrase > > has_many :users > > end > > ~ language table > > id > > name >is integer> > directions > > language_name > > ~phrase model > > class Phrase < ActiveRecord::Base > > has_many :languages > > end > > ~ phrase table > > id > > name >this is a string> > category > >> Why is the foreign key "name"? Is the "name" field in language a text > field, or an integer? It needs to be an integer to store the id of the > Phrase, and would make more sense as "name_id". > > name in language is integer (is foreign key of phrase)name in phrase is string please help> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 15:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name"By having the relationship named the same as an attribute, that''s going to confuse things, because when something calls "language.name", is it expecting the phrase object back, or the integer value of the name field? Change the foreign key field to "name_id" -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On 14 July 2011 15:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> > class Language < ActiveRecord::Base >> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" >> > belongs_to :phrase >> > has_many :users >> > end >> > ~ language table >> > id >> > name > > is integer >> >> > directions >> > language_namePS Where''s your phrase_id in the language table? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On Thu, Jul 14, 2011 at 10:18 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 15:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > class Language < ActiveRecord::Base > >> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > >> > belongs_to :phrase > >> > has_many :users > >> > end > >> > ~ language table > >> > id > >> > name > > > > is integer > >> > >> > directions > >> > language_name > > PS Where''s your phrase_id in the language table? > > there is not phrase_id in language modeli use the name (phrase ''s foreign key) .. is there any syntax mistakes? --> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 15:33, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> On 14 July 2011 15:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > class Language < ActiveRecord::Base >> >> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" >> >> > belongs_to :phrase >> >> > has_many :users >> >> > end >> >> > ~ language table >> >> > id >> >> > name >> > >> > is integer >> >> >> >> > directions >> >> > language_name >> >> PS Where''s your phrase_id in the language table? >> > there is not phrase_id in language model > i use the name (phrase ''s foreign key) .. > is there any syntax mistakes?In Language, you have "belongs_to :name" (which is really Phrase), and belongs_to :phrase. So you need a phrase_id field, and a name_id field - one for each of the relationships. In Phrase, you "has_many :languages", but language doesn''t yet have a phrase_id field. Or did you mean for this has_many to point at the name_id field as foreign key? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On 14 July 2011 15:41, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 15:33, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> there is not phrase_id in language model >> i use the name (phrase ''s foreign key) .. >> is there any syntax mistakes? > > In Language, you have "belongs_to :name" (which is really Phrase), and > belongs_to :phrase. So you need a phrase_id field, and a name_id field > - one for each of the relationships. > > In Phrase, you "has_many :languages", but language doesn''t yet have a > phrase_id field. Or did you mean for this has_many to point at the > name_id field as foreign key?I''ve just read through this thread: I''m sorry for repeating stuff you''ve already been told by two different people :-/ -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 10:41 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 15:33, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On 14 July 2011 15:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> > class Language < ActiveRecord::Base > >> >> > belongs_to :name, :class_name => "Phrase", :foreign_key => "name" > >> >> > belongs_to :phrase > >> >> > has_many :users > >> >> > end > >> >> > ~ language table > >> >> > id > >> >> > name > >> > > >> > is integer > >> >> > >> >> > directions > >> >> > language_name > >> > >> PS Where''s your phrase_id in the language table? > >> > > there is not phrase_id in language model > > i use the name (phrase ''s foreign key) .. > > is there any syntax mistakes? > > In Language, you have "belongs_to :name" (which is really Phrase), and > belongs_to :phrase. So you need a phrase_id field, and a name_id field > - one for each of the relationships. >belongs_to phrase, I add it because the languageTest is complaining there is no association with phrase. so that i added it to language model> > In Phrase, you "has_many :languages", but language doesn''t yet have a > phrase_id field. Or did you mean for this has_many to point at the > name_id field as foreign key? >yes. I want to point the name_id as foreign key of phrase one phrase(id) can have many language (name_id/phrase_id) I have so confused to have this warning.. please help and thanks for the quick reply.> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 16:03, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Jul 14, 2011 at 10:41 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> In Language, you have "belongs_to :name" (which is really Phrase), and >> belongs_to :phrase. So you need a phrase_id field, and a name_id field >> - one for each of the relationships. > > belongs_to phrase, I add it because the languageTest is complaining there is > no association with phrase. > so that i added it to language modelIf you don''t want it, take it out. Change the "name" field to "name_id" for all our sakes....>> In Phrase, you "has_many :languages", but language doesn''t yet have a >> phrase_id field. Or did you mean for this has_many to point at the >> name_id field as foreign key? > > yes. I want to point the name_id as foreign key of phrase > one phrase(id) can have many language (name_id/phrase_id)So do that then (how''s Rails supposed to know that you''ve decided for no reason not to use "phrase_id" as the foreign key field in Language?!): has_many :languages, :foreign_key => :name_id -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 11:13 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 16:03, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Thu, Jul 14, 2011 at 10:41 AM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> In Language, you have "belongs_to :name" (which is really Phrase), and > >> belongs_to :phrase. So you need a phrase_id field, and a name_id field > >> - one for each of the relationships. > > > > belongs_to phrase, I add it because the languageTest is complaining there > is > > no association with phrase. > > so that i added it to language model > > If you don''t want it, take it out. > Change the "name" field to "name_id" for all our sakes.... >yes,, I did change it and it language table (DB) it changed the name => name_id in language model belongs_to :name_id, :class_name => "Phrase", :foreign_key => "name_id" in phrase model has_many :languages, :foreign_key => "name_id" it complains 1) Failure: test: belongs to and has many association should belong to phrase. (LanguageTest) [/usr/local/lib/ruby/gems/1.9.1/gems/shoulda-2.11.3/lib/shoulda/context.rb:324]: Expected Language to have a belongs_to association called phrase (no association called phrase). Expected block to return true value. 2) Failure: test: check has_many and belongs_to association should have many languages. (PhraseTest) [/usr/local/lib/ruby/gems/1.9.1/gems/shoulda-2.11.3/lib/shoulda/context.rb:324]: Expected Phrase to have a has_many association called languages (Language does not have a name_id foreign key.). Expected block to return true value.> >> In Phrase, you "has_many :languages", but language doesn''t yet have a > >> phrase_id field. Or did you mean for this has_many to point at the > >> name_id field as foreign key? > > > > yes. I want to point the name_id as foreign key of phrase > > one phrase(id) can have many language (name_id/phrase_id) > > So do that then (how''s Rails supposed to know that you''ve decided for > no reason not to use "phrase_id" as the foreign key field in > Language?!): > has_many :languages, :foreign_key => :name_id > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 16:47, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> in language model > belongs_to :name_id, :class_name => "Phrase", :foreign_key => "name_id"Why would you change the association name to "name_id"? It''s just the foreign key to change: belongs_to :name, :class_name => "Phrase", :foreign_key => "name_id" -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
On Thu, Jul 14, 2011 at 12:10 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 16:47, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > in language model > > belongs_to :name_id, :class_name => "Phrase", :foreign_key => "name_id" > > Why would you change the association name to "name_id"? It''s just the > foreign key to change: > belongs_to :name, :class_name => "Phrase", :foreign_key => "name_id" > > i changed itnow it gives me an error Error: test_validates_length_of_name(UserTest): ActiveRecord::StatementInvalid: SQLite3::SQLException: table languages has no column named name_id: INSERT INTO "languages" ("name_english", "name_id", "created_at", "updated_at", "id") VALUES (''en'', ''english'', ''MyString'', 1, ''f'', ''MyString'', 1, ''2011-07-14 16:22:20'', ''2011-07-14 16:22:20'', 980190962) /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract_adapter.rb:207:in `rescue in log'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract_adapter.rb:199:in `log'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/sqlite_adapter.rb:135:in `execute'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract/database_statements.rb:239:in `insert_fixture'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:652:in `block in insert_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:588:in `each'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:588:in `insert_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:532:in `block (4 levels) in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:532:in `each'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:532:in `block (3 levels) in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:530:in `block (2 levels) in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract_adapter.rb:109:in `disable_referential_integrity'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:521:in `block in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/benchmarkable.rb:55:in `silence'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:520:in `create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:979:in `load_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:944:in `setup_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:415:in `_run_setup_callbacks'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/setup_and_teardown.rb:34:in `run'' in yml file # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html one: name_english: english name_id: 1 two: name_english: french name_id: 1> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
i changed it now it gives me an error Error: test_validates_length_of_name(UserTest): ActiveRecord::StatementInvalid: SQLite3::SQLException: table languages has no column named name_id: INSERT INTO "languages" ("name_english", "name_id", "created_at", "updated_at", "id") VALUES (''english'', 1, ''2011-07-14 16:22:20'', ''2011-07-14 16:22:20'', 980190962) /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract_adapter.rb:207:in `rescue in log'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract_adapter.rb:199:in `log'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/sqlite_adapter.rb:135:in `execute'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract/database_statements.rb:239:in `insert_fixture'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:652:in `block in insert_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:588:in `each'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:588:in `insert_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:532:in `block (4 levels) in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:532:in `each'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:532:in `block (3 levels) in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:530:in `block (2 levels) in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract_adapter.rb:109:in `disable_referential_integrity'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:521:in `block in create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/benchmarkable.rb:55:in `silence'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:520:in `create_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:979:in `load_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/fixtures.rb:944:in `setup_fixtures'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:415:in `_run_setup_callbacks'' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/setup_and_teardown.rb:34:in `run'' in yml file # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html one: name_english: english name_id: 1 two: name_english: french name_id: 1 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 17:26, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i changed it > now it gives me an error >Have you read the error? Error:> SQLException: table languages has no column named name_id > >Seems obvious to me... have you altered your table/migrations? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 2:40 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 17:26, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> i changed it >> now it gives me an error >> > > Have you read the error? > > Error: >> SQLException: table languages has no column named name_id >> >> > Seems obvious to me... have you altered your table/migrations? >no, i did not change anything from DB or table I am really dont understand what the error is warned about> > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 19:55, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Jul 14, 2011 at 2:40 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> Have you read the error? >> >> Error: >>> SQLException: table languages has no column named name_id >>> >>> >> Seems obvious to me... have you altered your table/migrations? >> > > no, i did not change anything from DB or table > I am really dont understand what the error is warned about > >>Since you took the advice to change the foreign key from "name" to "name_id", you need to change the DB field to match. Alter your migration, and run it again, or create a new migration to rename the field. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 3:04 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 19:55, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Thu, Jul 14, 2011 at 2:40 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: >> >>> Have you read the error? >>> >>> Error: >>>> SQLException: table languages has no column named name_id >>>> >>>> >>> Seems obvious to me... have you altered your table/migrations? >>> >> >> no, i did not change anything from DB or table >> I am really dont understand what the error is warned about >> >>> > Since you took the advice to change the foreign key from "name" to > "name_id", you need to change the DB field to match. Alter your migration, > and run it again, or create a new migration to rename the field. > > No, it does not work, :( . it is an error of no columntable languages has no column named name_id: INSERT INTO "languages" "name_english", "created_at", "updated_at", "id", "name_id") VALUES ( ''english'', ''2011-07-14 19:10:54'', ''2011-07-14 19:10:54'', 980190962, 64810937) It is there --> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 20:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Since you took the advice to change the foreign key from "name" to > "name_id", you need to change the DB field to match. Alter your migration, > and run it again, or create a new migration to rename the field. > >> >> No, it does not work, :( . it is an error of no column > table languages has no column named name_id: INSERT INTO "languages" > "name_english", "created_at", "updated_at", "id", "name_id") VALUES ( > ''english'', ''2011-07-14 19:10:54'', ''2011-07-14 19:10:54'', 980190962, > 64810937) > > It is there >I beg to differ - or at least Rails does. What have you done to check the field is in the DB? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 3:32 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 20:12, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> Since you took the advice to change the foreign key from "name" to >> "name_id", you need to change the DB field to match. Alter your migration, >> and run it again, or create a new migration to rename the field. >> >>> >>> No, it does not work, :( . it is an error of no column >> table languages has no column named name_id: INSERT INTO "languages" >> "name_english", "created_at", "updated_at", "id", "name_id") VALUES ( >> ''english'', ''2011-07-14 19:10:54'', ''2011-07-14 19:10:54'', 980190962, >> 64810937) >> >> It is there >> > > > I beg to differ - or at least Rails does. What have you done to check the > field is in the DB? > > I am using the rails dbconsole to check the field in DB> > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 20:37, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using the rails dbconsole to check the field in DB > >>Out of curiosity, *which* rails dbconsole are you using? What command do you execute to get to this console? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 3:41 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 20:37, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I am using the rails dbconsole to check the field in DB >> >>> > Out of curiosity, *which* rails dbconsole are you using? What command do > you execute to get to this console? > > I am using commad " rails dbconsole " to get to the dband plus. I use the sqlite3 manager from firefox cho check too> > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 20:46, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I am using commad " rails dbconsole " to get to the db > and plus. I use the sqlite3 manager from firefox cho check too >Well something''s very odd then - because the SQL query that''s running is report that the languages table doesn''t have a name_id field, while you''re saying it does... curious -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 4:10 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 20:46, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> I am using commad " rails dbconsole " to get to the db >> and plus. I use the sqlite3 manager from firefox cho check too >> > > Well something''s very odd then - because the SQL query that''s running is > report that the languages table doesn''t have a name_id field, while you''re > saying it does... > > curious >me too.. i am so curious what is happened when name_id is in DB but it keeps saying no column :( thanks for the quick reply.> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 21:14, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> me too.. i am so curious what is happened when name_id is in DB > but it keeps saying no column :( > >Hang on... this is breaking when you''re running tests? Have you raked the DB changes into your test DB (I''m assuming that the dbconsole is showing you the production DB) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 4:21 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 21:14, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> me too.. i am so curious what is happened when name_id is in DB >> but it keeps saying no column :( >> >> > Hang on... this is breaking when you''re running tests? Have you raked the > DB changes into your test DB (I''m assuming that the dbconsole is showing you > the production DB) > > yes, I did rake db:create and db:migrate as well> > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 July 2011 21:24, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hang on... this is breaking when you''re running tests? Have you raked the >> DB changes into your test DB (I''m assuming that the dbconsole is showing you >> the production DB) >> >> yes, I did rake db:create and db:migrate as well > > >no, I mean: rake db:test:prepare -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jul 14, 2011 at 4:49 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 July 2011 21:24, joanne ta <joanne0558-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hang on... this is breaking when you''re running tests? Have you raked the >>> DB changes into your test DB (I''m assuming that the dbconsole is showing you >>> the production DB) >>> >>> yes, I did rake db:create and db:migrate as well >> >> >> > no, I mean: > rake db:test:prepare >Yes, I did it too> > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.