in my machine i dn't have the local application setup. so just i try this two for display that
*puts last_year = Time.now.ago(1.year) *or* last_year = 1.year.ago* but it gives error *undefined method `year' for 1:Fixnum (NoMethodError).*year is builtin...? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/odDlVwzseQYJ. To post to this group, send email to rubyonrails-talk@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.