RubyMine warns on rails config files
See http://cl.ly/image/332E3y09132r for a screenshot
This is from a vanilla Rails 3.2.11 app. Any idea how I can suppress or fix these warnings?
请先登录再写评论。
See http://cl.ly/image/332E3y09132r for a screenshot
This is from a vanilla Rails 3.2.11 app. Any idea how I can suppress or fix these warnings?
请先登录再写评论。
There is one main rule for all development:
there is no magic )
try to go through the code and try to realise for where your config files (and other files) should be placed.
one more thing is to try to install ruby on rails one more time and create a project one more time.
more, i know that if you use windows, itll be great if you check your path environment variable to find there paths with spaces which shouldnt be there.
and of coz ur rails installation path should be without spaces.
ye this sounds dumb but even dumb answer could help someone ))
I've never used rails but I saw your question is still unanswered so I just tried to be first and helpful
Thanks, Alex. Regenerating/reinstalling doesn't seem to change anything. I'm pretty sure it's a side effect of the Rails::Application.configure method using instance_eval to change the scope.
I've hit a ton of other false-positives WRT RubyMine's code inspection. Honestly I think I'd like it a lot better if there were an easy way to disable the rule that causes the warning, but there isn't any easy way I've found to see how the warning maps to the underlying code inspection rule.
Also, let's not forget:
"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
;)
This problem is already fixed in RubyMine 5 EAP