Re: [Rails] module/class question

2010-04-14 Thread Chris Habgood
OK, that is what I thought, thanks. On Wed, Apr 14, 2010 at 09:33, Andy Jeffries wrote: > On 14 April 2010 15:18, Chris Habgood wrote: > >> ok as far as controllers are concerned in a RoR app would either of those >> style matter as far as name spacing? >> > > Nope, won't matter a jot. > > But

Re: [Rails] module/class question

2010-04-14 Thread Andy Jeffries
On 14 April 2010 15:18, Chris Habgood wrote: > ok as far as controllers are concerned in a RoR app would either of those > style matter as far as name spacing? > Nope, won't matter a jot. But if you have this: class Admin::FooController end without declaring Admin first you'll get an error.

Re: [Rails] module/class question

2010-04-14 Thread Chris Habgood
ok as far as controllers are concerned in a RoR app would either of those style matter as far as name spacing? On Wed, Apr 14, 2010 at 02:35, Andy Jeffries wrote: > On 14 April 2010 01:45, Me wrote: > >> Are these two below the same thing? >> >> 1. module X >> module Y >> class Z

Re: [Rails] module/class question

2010-04-14 Thread Andy Jeffries
On 14 April 2010 01:45, Me wrote: > Are these two below the same thing? > > 1. module X > module Y > class Z > > > 2. class X::Y::Z > Providing class Z has already been created with style 1, yes. If you try to run style 2 without X and Y having been created you will get "NameErr

[Rails] module/class question

2010-04-13 Thread Me
Are these two below the same thing? 1. module X module Y class Z 2. class X::Y::Z -- 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