Rubymine, controller file - ruby-on-rails

So i have this silly problem with RubyMine, i've been working on it for a while and was having great time, but just before i messed something up, and i'm not really able to understand the problem.
When i create normal ruby files, like eg. 'file.rb' it gets recognized, syntax is highligthed, everything works perfect. but when i create very specific controller file i already tried to create but clicked on something, it is recognized as txt, no syntax highlight, no nothing.
I need this controller and it makes me really sad because i can't make it work

RubyMine -> Preferences -> File Types
Then delete filename from the specific list

Related

Looking to re-name 1000's of code entries/file paths within a folder automatically

I'm looking for a way to mass-rename many, many lines of code that all end in '.ogg' within a folder. There's more then 4,000 entries so annoying to do one-by-one.
The bigger picture is that I downloaded an open-source game that unfortunately doesn't work because a lot of the sound files are in different directiories, like, "sound/monster, sound/machines, sound/robots", but for SOME REASON literally every .ogg file in the code doesn't contain where the sound file actually is. If the correct path is "sound/machines/lightswitch1.ogg" then the code line is "lightswitch1.ogg" and doesn't work. I am looking for a way to simply rename all the offending files to something like "sound/allsounds/[soundname].ogg", then take every sound file and dump it in the "allsounds" folder. I don't need it to be tidy because I'm the only one using it. Thanks!
Edit: I'm also really ignorant about all things code, so I might've missed some obvious solution.
Edit 2: I tried 'Batch Rename' but it doesn't seem to work for search results (what I'm using to see all the darn filepaths. I think it's only for actual files?).

In PHPstorm , is any way to avoid save all open documents instead current active document? [duplicate]

My traditional workflow must be a little different to the PHPStorm default. I often work on multiple files at the same time and want to be able to save just one file when I've finished with it, without saving the others that I've modified.
I've managed to turn off the auto-save feature. Now, when I edit files I get stars on the ones I've edited and they stay like that until I hit 'save'. So far so good.
But when press CTRL-S to save, expecting it to save the one file I'm looking at so I can go back to the ones with asterisks to polish them off too, it also saves ALL the other files too.
I hope there's some way to change this behaviour or set up something to allow me to save just one file at a time!
Yes, you can .. but that still does not change a lot (e.g if you change your settings, or run/re-run something -- all files will be saved automatically anyway). Eventually (after few weeks or month of adaptation) you will get used to this behaviour and quite likely will love it (yes, this means changing working habits a bit, which is quite hard to do (requires time) for some people/in some cases).
Anyway ... to enable "save single file" functionality:
Settings | Keymap
On that screen, in search box type "save"
The action you are after is called "Other | Save Document"
Assign whatever shortcut you want.
P.S.
This action will NOT ask for confirmation (same behaviour as standard save does).
P.P.S.
This action is available since PhpStorm v7 ONLY.

RubyMine searching with find usages

I have just bought a license to use Ruby Mine and am really struggling to learn how to use it. I keep having to go back to Text Mate to do simple things like searching.
I'm trying to find where i have defined a css div (called "category title"). From what I can gather, I need to use 'Find Usages' in Ruby Mine. Most times when I go to the edit/find menu, 'find usages' is greyed out. Then, if I click on the uppermost 'app' folder, and click find usages, it searches for 'app'. It doesn't recognise the search in the search bar. If i type the div name in the code and click alt/F7, it gives me a typo warning rather than a search option.
Does anyone know how to search the entire app (not just the specific file of the app) in RubyMine? I'm finding this incredibly frustrating.
Thank you
The command you need is Find in Path which will search your entire project, set of projects if they are open together, a specific director, etc. It has a bunch of options, including a regex search. For Mac, it is Command+Shift+f, for windows Ctrl+Shift+f
Checkout this site for keyboard reference.
https://www.jetbrains.com/ruby/documentation/index.html
You might also try shift+shift which is search everywhere, files, classes, symbols.

RubyMine stopped recognizing html.erb

my rubymine stopped recognizing html.erb files :s
You can see how it looks here:
http://pasteboard.co/1D5oWZGB.png
If your suggestion, its a uninstall, please tel me how to do it on Ubuntu :)
Thanks anyway :)
Based on what you're showing us with the screenshot RubyMine's built in file type system is no longer seeing the *.erb files as RHTML or Ruby files anymore.
Please verify that your file mappings are correct by going into the settings menu (File -> Settings or Ctrl + Alt + S) and checking the listed file mappings by going into Editor -> File Types -> RHTML.
It should look something like this:
If *.erb is not listed there try adding it again and it should re-enable code highlighting etc.
If anyone comes across this, I have found the correct solution to the problem. ivopatty's answer doesn't quite address the question.
According to pasteboard, we see only friendlist.html.erb file is not being recognized, there's no problem with other *.erb files.
To solve this problem, search for registered pattern in text file type (you can access it by pressing Ctrl + Alt + S) and you'll see that file listed there. If it's not there, search throughout the other file types. Then you remove the file from the list and you'll solve this problem.

Localize Wix Bundle Bootstrapper

I localized file hyperlinkthemt.wxl (pl-pl). But my bootstrapper just shows up and then disappears in a second and nothing more happens. I was trying to solve the problem and noticed that I can't use polish letters in hyperlinktheme.wxl.
Is there any way to change that. I was trying to do something with HyperLinkTheme.wxl:
<WixLocalization Culture="pl-pl" Language="1045" xmlns="http://schemas.microsoft.com/wix/2006/localization">
but it didnt help. As you may know for bundle projects one can't change localization.
There will be a log file in your %TEMP% folder that should show a little more detail what is wrong. Chances are the .wxl file is not saved in UTF8 and cannot be loaded.

Resources