sheamus wrote:ps - how the heck do you get notified of replies in this forum?
Sadly, you don't.
sheamus wrote:I am on W7.
Path to rails project should be all ascii, it doesn't even have spaces.
I just wanted to check. I was just dealing with a problem on Windows 7 where the username was in Russian and I was failing to get the unicode version of a directory. [There will be a fix for that later today]
sheamus wrote:I do have a config/routes.rb folder. What does it look relative to?
The logic for determining if a file belongs to a Rails project is defined in Packages/DetectSyntax/is_rails_file.py, but the gist is it starts at the folder the file is in and looks for ./config/routes.rb. If it doesn't find one, it steps up the directory structure, looking at each level along the way. It's a bit of a hack, but I couldn't think of a better way to do it at the time. If you happen to have C:\config\routes.rb for some reason, all of your .rb files could be mis-identified as Rails files. I took the chance that no one would reasonably have a config/routes.rb outside of a Rails project.
I started ST2 from start menu, then choose open recent projects. My project file lives in the root of the rails project directory.
- Code: Select all
I removed the settings file from my User directory, and restarted ST2. But opening a model_obj.rb file still shows Ruby syntax, as opposed to Ruby on Rails.
Are there any errors in the console when you switch to a Rails file?