Hi, I''m trying to use annotate to document my model classes. Two of the models don''t work, though, with the following errors: $ bundle exec annotate --position before Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: undefined method `assert_valid_keys'' for :acceptance_criterion:Symbol> Unable to annotate test.rb: #<TypeError: can''t convert Symbol into Integer> Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, TestExecution There''s nothing special about either of the models. Any help is appreciated. I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed before annotating anything). Thanks, Cassiano -- 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.
Can you post your model code in a gist? On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to use annotate to document my model classes. Two of the models > don''t work, though, with the following errors: > > $ bundle exec annotate --position before > Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: > undefined method `assert_valid_keys'' for :acceptance_criterion:Symbol> > > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into Integer> > > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, TestExecution > > There''s nothing special about either of the models. Any help is appreciated. > > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed before > annotating anything). > > Thanks, > Cassiano > > -- > 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.-- Greg Akins http://twitter.com/akinsgre -- 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.
Sure, here you go: https://gist.github.com/1844590 Cassiano On 16 February 2012 10:06, Greg Akins <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Can you post your model code in a gist? > > On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi, > > > > I''m trying to use annotate to document my model classes. Two of the > models > > don''t work, though, with the following errors: > > > > $ bundle exec annotate --position before > > Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: > > undefined method `assert_valid_keys'' for :acceptance_criterion:Symbol> > > > > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into > Integer> > > > > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, > TestExecution > > > > There''s nothing special about either of the models. Any help is > appreciated. > > > > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed before > > annotating anything). > > > > Thanks, > > Cassiano > > > > -- > > 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. > > > > -- > Greg Akins > http://twitter.com/akinsgre > > -- > 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 16 February 2012 12:45, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sure, here you go: > > https://gist.github.com/1844590schema.rb might be useful too. Colin> > Cassiano > > > On 16 February 2012 10:06, Greg Akins <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Can you post your model code in a gist? >> >> On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > Hi, >> > >> > I''m trying to use annotate to document my model classes. Two of the >> > models >> > don''t work, though, with the following errors: >> > >> > $ bundle exec annotate --position before >> > Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: >> > undefined method `assert_valid_keys'' for :acceptance_criterion:Symbol> >> > >> > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into >> > Integer> >> > >> > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, >> > TestExecution >> > >> > There''s nothing special about either of the models. Any help is >> > appreciated. >> > >> > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed before >> > annotating anything). >> > >> > Thanks, >> > Cassiano >> > >> > -- >> > 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. >> >> >> >> -- >> Greg Akins >> http://twitter.com/akinsgre >> >> -- >> 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.-- gplus.to/clanlaw -- 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, Feb 16, 2012 at 5:25 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 16 February 2012 12:45, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Sure, here you go: >> >> https://gist.github.com/1844590Will you also include the TestExecution model? -- Greg Akins http://twitter.com/akinsgre -- 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 16 February 2012 12:45, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sure, here you go: > > https://gist.github.com/1844590Model classes are usually singular, so the class for table acceptance_criterion_results would be AcceptanceCriterionResult in acceptance_criterion_result.rb Colin> > Cassiano > > > On 16 February 2012 10:06, Greg Akins <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Can you post your model code in a gist? >> >> On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > Hi, >> > >> > I''m trying to use annotate to document my model classes. Two of the >> > models >> > don''t work, though, with the following errors: >> > >> > $ bundle exec annotate --position before >> > Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: >> > undefined method `assert_valid_keys'' for :acceptance_criterion:Symbol> >> > >> > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into >> > Integer> >> > >> > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, >> > TestExecution >> > >> > There''s nothing special about either of the models. Any help is >> > appreciated. >> > >> > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed before >> > annotating anything). >> > >> > Thanks, >> > Cassiano >> > >> > -- >> > 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. >> >> >> >> -- >> Greg Akins >> http://twitter.com/akinsgre >> >> -- >> 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.-- gplus.to/clanlaw -- 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''ve updated the gist with the other files. Colin: I understand that, but that was a semantic decision to keep results in the plural. I don''t think either format should break annotate, though... Cassiano On 16 February 2012 13:11, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 16 February 2012 12:45, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Sure, here you go: > > > > https://gist.github.com/1844590 > > Model classes are usually singular, so the class for table > acceptance_criterion_results would be AcceptanceCriterionResult in > acceptance_criterion_result.rb > > Colin > > > > > Cassiano > > > > > > On 16 February 2012 10:06, Greg Akins <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> Can you post your model code in a gist? > >> > >> On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> wrote: > >> > Hi, > >> > > >> > I''m trying to use annotate to document my model classes. Two of the > >> > models > >> > don''t work, though, with the following errors: > >> > > >> > $ bundle exec annotate --position before > >> > Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: > >> > undefined method `assert_valid_keys'' for :acceptance_criterion:Symbol> > >> > > >> > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into > >> > Integer> > >> > > >> > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, > >> > TestExecution > >> > > >> > There''s nothing special about either of the models. Any help is > >> > appreciated. > >> > > >> > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed > before > >> > annotating anything). > >> > > >> > Thanks, > >> > Cassiano > >> > > >> > -- > >> > 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. > >> > >> > >> > >> -- > >> Greg Akins > >> http://twitter.com/akinsgre > >> > >> -- > >> 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. > > > > -- > gplus.to/clanlaw > > -- > 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 16 February 2012 17:20, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve updated the gist with the other files. > > Colin: I understand that, but that was a semantic decision to keep results > in the plural. I don''t think either format should break annotate, though...I would try it with the class singular if I were you, in order to determine if that is part of the problem. Easy enough to hack it to find out. I think you should just need to rename the model file and change the class name. It may break the rest of the app but that does not matter if just trying annotate. By the way, I find it easier to follow the thread if replies are not top posted but are inserted at appropriate points in the previous email. Colin> > Cassiano > > > On 16 February 2012 13:11, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 16 February 2012 12:45, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Sure, here you go: >> > >> > https://gist.github.com/1844590 >> >> Model classes are usually singular, so the class for table >> acceptance_criterion_results would be AcceptanceCriterionResult in >> acceptance_criterion_result.rb >> >> Colin >> >> > >> > Cassiano >> > >> > >> > On 16 February 2012 10:06, Greg Akins <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> >> Can you post your model code in a gist? >> >> >> >> On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> wrote: >> >> > Hi, >> >> > >> >> > I''m trying to use annotate to document my model classes. Two of the >> >> > models >> >> > don''t work, though, with the following errors: >> >> > >> >> > $ bundle exec annotate --position before >> >> > Unable to annotate acceptance_criterion_results.rb: #<NoMethodError: >> >> > undefined method `assert_valid_keys'' for >> >> > :acceptance_criterion:Symbol> >> >> > >> >> > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into >> >> > Integer> >> >> > >> >> > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, >> >> > TestExecution >> >> > >> >> > There''s nothing special about either of the models. Any help is >> >> > appreciated. >> >> > >> >> > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed >> >> > before >> >> > annotating anything). >> >> > >> >> > Thanks, >> >> > Cassiano >> >> > >> >> > -- >> >> > 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. >> >> >> >> >> >> >> >> -- >> >> Greg Akins >> >> http://twitter.com/akinsgre >> >> >> >> -- >> >> 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. >> >> >> >> -- >> gplus.to/clanlaw >> >> -- >> 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.-- gplus.to/clanlaw -- 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 16 February 2012 15:44, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 16 February 2012 17:20, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I''ve updated the gist with the other files. > > > > Colin: I understand that, but that was a semantic decision to keep > results > > in the plural. I don''t think either format should break annotate, > though... > > I would try it with the class singular if I were you, in order to > determine if that is part of the problem. Easy enough to hack it to > find out. I think you should just need to rename the model file and > change the class name. It may break the rest of the app but that does > not matter if just trying annotate. >I just tried that following your suggestion and got the same errors. By the way, I find it easier to follow the thread if replies are not> top posted but are inserted at appropriate points in the previous > email. >Thanks for the friendly reminder. It''s been sometime since I last interacted in a mailing list, and these things are easy to forget, but I''ll do better from now on. Cassiano> > Colin > > > > > Cassiano > > > > > > On 16 February 2012 13:11, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > >> > >> On 16 February 2012 12:45, Cassiano Leal <cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> > Sure, here you go: > >> > > >> > https://gist.github.com/1844590 > >> > >> Model classes are usually singular, so the class for table > >> acceptance_criterion_results would be AcceptanceCriterionResult in > >> acceptance_criterion_result.rb > >> > >> Colin > >> > >> > > >> > Cassiano > >> > > >> > > >> > On 16 February 2012 10:06, Greg Akins <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> > >> >> Can you post your model code in a gist? > >> >> > >> >> On Tue, Feb 14, 2012 at 5:18 PM, Cassiano Leal < > cassianoleal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> >> wrote: > >> >> > Hi, > >> >> > > >> >> > I''m trying to use annotate to document my model classes. Two of the > >> >> > models > >> >> > don''t work, though, with the following errors: > >> >> > > >> >> > $ bundle exec annotate --position before > >> >> > Unable to annotate acceptance_criterion_results.rb: > #<NoMethodError: > >> >> > undefined method `assert_valid_keys'' for > >> >> > :acceptance_criterion:Symbol> > >> >> > > >> >> > Unable to annotate test.rb: #<TypeError: can''t convert Symbol into > >> >> > Integer> > >> >> > > >> >> > Annotated (4): AcceptanceCriterion, Invoice, OutdataInvoice, > >> >> > TestExecution > >> >> > > >> >> > There''s nothing special about either of the models. Any help is > >> >> > appreciated. > >> >> > > >> >> > I am using Ruby 1.9.3-p0 and annotate 2.4.1.beta1 (2.4.0 crashed > >> >> > before > >> >> > annotating anything). > >> >> > > >> >> > Thanks, > >> >> > Cassiano > >> >> > > >> >> > -- > >> >> > 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. > >> >> > >> >> > >> >> > >> >> -- > >> >> Greg Akins > >> >> http://twitter.com/akinsgre > >> >> > >> >> -- > >> >> 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. > >> > >> > >> > >> -- > >> gplus.to/clanlaw > >> > >> -- > >> 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. > > > > -- > gplus.to/clanlaw > > -- > 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.