Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread John Firebaugh
Attached is my proposed patch for the translation issue. I think we should support both conventions and deprecate neither. The newer convention is cleaner when you nest multiple models within one namespace: en: activemodel: models: namespace: model_one: one: Model One other: Model Ones mod

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread John Firebaugh
On Wed, Mar 30, 2011 at 4:29 PM, Aaron Patterson wrote: > + def > test_translated_model_attributes_with_attribute_matching_namespaced_model_name_and_dot > +assert_deprecated do > + I18n.backend.store_translations 'en', :activemodel => {:attributes > => {:person => {:gender => 'person g

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Aaron Patterson
On Wed, Mar 30, 2011 at 08:18:45AM -0700, John Firebaugh wrote: > On Wed, Mar 30, 2011 at 5:47 AM, Rodrigo Rosenfeld Rosas > wrote: > > > This issue started here: > > > > > > https://rails.lighthouseapp.com/projects/8994/tickets/3768-patch-add-full_message-option-to-validations#ticket-3768-69 >

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Ernie Miller
On Mar 30, 2011, at 7:18 PM, Aaron Patterson wrote: > I'll be on vacation. :-D Fixed that for you. :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Aaron Patterson
On Wed, Mar 30, 2011 at 08:18:45AM -0700, John Firebaugh wrote: > On Wed, Mar 30, 2011 at 5:47 AM, Rodrigo Rosenfeld Rosas > wrote: > > > This issue started here: > > > > > > https://rails.lighthouseapp.com/projects/8994/tickets/3768-patch-add-full_message-option-to-validations#ticket-3768-69 >

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Aaron Patterson
On Wed, Mar 30, 2011 at 08:33:28PM +0200, Robert Pankowecki wrote: > On Wed, Mar 30, 2011 at 5:55 PM, Aaron Patterson > wrote: > >> As you can see the simple expectation that yesterday = today -1 and > >> tomorrow = today + 1 is apparently not true in some cases. This > >> problem probably happens

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Robert Pankowecki
On Wed, Mar 30, 2011 at 5:55 PM, Aaron Patterson wrote: >> As you can see the simple expectation that yesterday = today -1 and >> tomorrow = today + 1 is apparently not true in some cases. This >> problem probably happens around midnight in some zones... >> >> Do you want me to create tickets for

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Robert Pankowecki
On Wed, Mar 30, 2011 at 5:54 PM, Aaron Patterson wrote: > I agree we should support both for now, and deprecate one.  I'll come > up with a test and fix, and we'll release a new RC. Or we could add a setting which version you prefer. > Thanks for reporting this! Thanks for RC release and the a

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Aaron Patterson
On Wed, Mar 30, 2011 at 01:23:55AM +0200, Robert Pankowecki wrote: > I also found a bug that occurs on 3.0.5 > > ruby-1.9.2-p136 :004 > Time.now > => 2011-03-30 01:15:20 +0200 > ruby-1.9.2-p136 :005 > Date.today > => Wed, 30 Mar 2011 > ruby-1.9.2-p136 :006 > Date.yesterday > => Mon, 28 Mar 2011

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Aaron Patterson
On Wed, Mar 30, 2011 at 08:18:45AM -0700, John Firebaugh wrote: > On Wed, Mar 30, 2011 at 5:47 AM, Rodrigo Rosenfeld Rosas > wrote: > > > This issue started here: > > > > > > https://rails.lighthouseapp.com/projects/8994/tickets/3768-patch-add-full_message-option-to-validations#ticket-3768-69 >

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread John Firebaugh
On Wed, Mar 30, 2011 at 5:47 AM, Rodrigo Rosenfeld Rosas wrote: > This issue started here: > > > https://rails.lighthouseapp.com/projects/8994/tickets/3768-patch-add-full_message-option-to-validations#ticket-3768-69 > > Then José Valim thought it was a bug and asked me to create another issue: >

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Rodrigo Rosenfeld Rosas
This issue started here: https://rails.lighthouseapp.com/projects/8994/tickets/3768-patch-add-full_message-option-to-validations#ticket-3768-69 Then José Valim thought it was a bug and asked me to create another issue: https://rails.lighthouseapp.com/projects/8994/tickets/5572 Then, this issu

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Robert Pankowecki
I meant class Articles module Articles class Articles::Category -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyon

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-30 Thread Robert Pankowecki
I thank that because this bug has been around since 3.0.2 version: https://rails.lighthouseapp.com/projects/8994/tickets/6034-human_attribute_name-scopes-translations-differently-for-nested-classes-since-rails-302 lot of people assumed that using '.' instead of '/' is the new way of doing things in

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread John Firebaugh
On Tue, Mar 29, 2011 at 3:14 PM, Robert Pankowecki < robert.pankowe...@gmail.com> wrote: > On Tue, Mar 29, 2011 at 11:30 PM, Ryan Bigg > wrote: > > We are asking you (yes you!) to *try out* the release candidate. If > > something > > that changed between 3.0.5 and this release candidate breaks yo

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Robert Pankowecki
I also found a bug that occurs on 3.0.5 ruby-1.9.2-p136 :004 > Time.now => 2011-03-30 01:15:20 +0200 ruby-1.9.2-p136 :005 > Date.today => Wed, 30 Mar 2011 ruby-1.9.2-p136 :006 > Date.yesterday => Mon, 28 Mar 2011 ruby-1.9.2-p136 :007 > Time.zone => (GMT+00:00) UTC ruby-1.9.2-p136 :008 > Date.t

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Robert Pankowecki
On Tue, Mar 29, 2011 at 11:30 PM, Ryan Bigg wrote: > We are asking you (yes you!) to *try out* the release candidate. If > something > that changed between 3.0.5 and this release candidate breaks your > application, > we want to know about it! ActiveModel::Name does not have :i18n_key method anym

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Ryan Bigg
You should run `bundle update` rather than `bundle install`, because `bundle update` ignores & updates the Gemfile.lock file, whereas `bundle install` doesn't. -- Ryan Bigg On Wednesday, 30 March 2011 at 8:06 AM, Aaron Patterson wrote: > ZOMG HAPPY TUESDAY (UTC-7)!!! <3<3<3<3<3 > > I am happ

[Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Aaron Patterson
ZOMG HAPPY TUESDAY (UTC-7)!!! <3<3<3<3<3 I am happy to announce that the first release candidate for Rails 3.0.6 has been pushed to rubygems.org. ## Release Candidate: What does it mean? The release candidate is very similar to what we will actually release for version 3.0.6. The reason that w