Folders in Project Explorer empty

Hey guys.

I have subfolders in my rails app in the models, controllers and migration folders. Unfortunately RubyMine won't list their contents in the project explorer. They are only accessable when quitting the Rails view and using the project view. Is there a setting I'm missing or am I forced to use the default Project View?

Cheers

3 comments
Comment actions Permalink

Hi Stefan,

In Models and Controllers subtrees Rails Project View shows only controllers, models, and classes from other ruby scripts. Also it doesn't show subfolder of db/migrate folder in "Models|Migration" subtree. What files do you want to be visible in these subtrees?

Models, Controllers subtrees

We can also display non ruby files and ruby scripts without classes if it has sense.

Migrations

What content do you store in subfolders of "db/migrate" ? I thought that the folder should contain only migration scripts.

Tests folder

It should show ruby classes and *.yaml files. Anything else?

>am I forced to use the default Project View
Rails Project View is designed to replace default project view(in most cases) in Rails applications. But we don't want to overload it with superfluous files. If we missed something useful feel free to report your about it.

0
Comment actions Permalink

Hi,

I organize my mixins for models in a subfolder of my models directory. The Rails View shows me the folder, but I just can't expand it.

I also collect fixtures in a subfolder of the migrations directory.

A convenient solution would be to simply collect all folders and files not recognized by RubyMine and simply show them. There is no reason to hide them.

Another thing that bugs me is that double-clicking on a model or controller expands the tree, instead of showing the file inside the editor.

Edited by: Stefan on Nov 16, 2008 4:37 PM

0
Comment actions Permalink

>Another thing that bugs me is that double-clicking on a model or controller expands the tree, instead of showing the file inside the editor.
For navigating to sources your can also use F4 or enable "scroll to source" button

>A convenient solution would be to simply collect all folders and files not recognized by RubyMine and simply show them.
>There is no reason to hide them.
Ok, we will fix it. I've created issue in JIRA - http://www.jetbrains.net/jira/browse/RUBY-2331. I think it will be fixed in next EAP.

Edited by: Roman.Chernyatchik on Nov 16, 2008 5:30 PM

0

Please sign in to leave a comment.