Frederick Cheung wrote in post #1063594:
> On Jun 7, 4:26pm, Victor Tanvuia <[email protected]> wrote:
>> Hi I'm having some weird issues with Rails 3 and classes defined in
>> modules.
>>
>> To be more precise I've created several files that define classes in the
>> AppBase module like:
>> module AppBase
>>  class BackendMenu
>>   [content omitted]
>>  end
>> end
>
> Rails' magic code loading would expect this file to be in app_base/
> backend_menu.rb
> app_base.rb should define the AppBase module (possibly empty). Have
> you tried that?
>
> Fred.

Hurrah, It works. The files were in the appbase folder so that's what 
the problem was. Forgot to add the underscore.

Many thanks.

-- 
Posted via http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to