What's the argument that you're passing the method? Just an integer?
On Feb 27, 12:58 am, Guillaume Loader <rails-mailing-l...@andreas- s.net> wrote: > Hello everyone! > > Is it possible to modify this function: beginning_of_week? > > What I want is something like this : > beginning_of_week(0) returns Sunday > beginning_of_week(1) returns Monday > > Thank you! > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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@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 -~----------~----~----~----~------~----~------~--~---