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
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.
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
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
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
5 matches
Mail list logo