Closed sdesbure closed 9 years ago
app/cells/type_icon.rb - module TypeIcon app/cells/cell/type_icon.rb - module Cell::TypeIcon Directory names should correspond to namespaces
Exactly! :smile: It's a pure Rails autoloading issue! Thanks @Tab10id! @sdesbure - jump on the https://gitter.im/trailblazer/chat channel if you need more support. :wink:
Hello,
thanks for the answer! I tried with app/cell
but wasn't working either so I thought it was a different story!
thanks guys
No no, app/XXX/toplevel/bla.rb
where the file bla.rb
is Toplevel::Bla
. The directory between app
and toplevel
could be dfjzkcxjalsdfjalskdfj1
and it would still work.
Hello, not sure if it's here but I give a try: I use cells (and trailblazer in general). In order to refactor, I've created a module reused in some cells:
TypeIcon
put inapp/cells/type_icon.rb
:I then include it in my concepts: for example in
Application::Cell
put inapp/concepts/application/cell.rb
:but when I start rails, I have the following error:
If I comment the line, start, uncomment, refresh, it works after another refresh (the first one whine about the missing constant but not the second one). Any hints to make it work?
thanks!