On Dec 20, 11:01 am, "ppgeng...@prevailhs.com" <ppgeng...@gmail.com> wrote:
> As a note, in the case where you just want a number in a string I > prefer this syntax: > > Factory.define :article do |t| > t.association :section > t.sequence(:title) {|n| "Article#{n}"} > end > > That way you don't have a sequence who's only job is to replicate this > functionality; save those sequences for something that is more complex > that you want to reuse and count. > > \Peter Oh! Thank you! -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.