rubymine

Rubymine - Rails gem not found

吃可爱长大的小学妹 提交于 2019-11-28 23:50:22
I installed Rails 3.2.3 and Ruby 1.9.3 going through this solution - http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ . It's really amazing and effortless. There were no errors while I did this. Now I try to create a Rails project in Rubymine 4 but there's an error: "Rails version - no Rails gem found". Terminal shows me: alex@ubuntu:~$ rails -v Rails 3.2.3 alex@ubuntu:~$ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] alex@ubuntu:~$ UPDATE alex@ubuntu:~$ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.8.24 - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel

IDE comment keywords

拥有回忆 提交于 2019-11-28 20:05:41
So I only recently discovered the TODO comment. For those of you that don't know, most modern IDE's will recognize this word in a comment and flag the comment line a different colour so It stands out. EG. //Need to talk to Bill about refactoring this code //TODO:Need to talk to Bill about refactoring this code You may notice in IDE's like Eclipse or Rubymine highlight the TODO comment and some nice other features to do with it. My question is: What other keywords are there like the TODO? It seems like a much better way of communicating to developers through comments and a feature that should

Rubymine shortcut to insert <%= %>

蓝咒 提交于 2019-11-28 19:48:11
问题 Is there a shortcut for inserting a <%= %> in Rubymine? I took a look in keymap and didn't see anything. 回答1: The default shortcut is Ctrl + Shift + Period on Windows and Cmd + Shift + Period on Mac. It may not work on all the keyboards, in which case you can change it in Settings ( Preferences on Mac) | Keymap : Main Menu , Tools , Erb , Insert <%= %> : You can also use code completion: After accepting this choice you'll get: <%= | %> Another option is to define a live template: Type re ,

RubyMine 3.0 setup on Windows 7

三世轮回 提交于 2019-11-28 08:50:37
All, I downloaded/installed 1.9.2 windows installer, and then RubyMine3.0RC, and installed it. Opening a new Rails project, with mysql selected as the DB, gives the following error when I "RUN" it. D:\ProgramFiles\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/Rob/RubymineProjects/test1/script/rails server -p 3000 -b 127.0.0.1 -e development D:/ProgramFiles/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': 126: The specified module could not be found. - D:/ProgramFiles/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2

Webstorm not recognising JavaScript file

流过昼夜 提交于 2019-11-28 05:37:29
Webstorm doesn't recognize one of my .js files as a JavaScript file so I'm losing syntax highlighting and being able to add break points. I've looked in the workspace.xml file and the file in question seems to have similar settings to other .js files that work correctly. If I change the name of the file it works ok. So somehow Webstorm is stuck on misinterpreting the type of a file that has this name. Where else can I edit the project? So I see three possible reasons of the problem: 1) The file was marked as 'Plain text' 2) There is a pattern for 'Text files' file type that matches this file

how to make Git ignore .idea files created by Rubymine

余生颓废 提交于 2019-11-28 02:58:14
I use Rubymine for Rails projects. Very often, Rubymine makes changes in .idea/* files that I don't care about. But it keeps preventing me from checking out new branches, and makes my version of .idea/ different from my coworkers. We already added .idea/ to .gitignore , but it keeps tracking changes in .idea . How should I do this the right way? Below is one of typical error messages I got: error: Your local changes to the following files would be overwritten by checkout: .idea/workspace.xml just .idea/ works fine for me Try git rm -r --cached .idea in your terminal. It disables the change

'ActiveRecord::Core::ClassMethods.find' call is deprecated

旧巷老猫 提交于 2019-11-28 02:30:53
问题 I'm using RubyMine 2016.1 and when I use the find(id) method of ActiveRecord it shows me this deprecation warning: 'ActiveRecord::Core::ClassMethods.find' call is deprecated, however, in the guide, find with primary key is not deprecated. 回答1: This seems to be a known bug in Rubymine 2016.1. You can track this bug report if you like and you can safely ignore this deprecation warning. Update: the bug seems to be fixed now in the Rubymine 2016.1.1 security release. The IDE no longer annotates

Unable to debug in RubyMine 4.5 using Ruby 1.9.3

人走茶凉 提交于 2019-11-27 21:19:08
My apologies for the length of the question, but I want to make it clear I am not making any stupid mistakes! So, I am struggling to get debugging working in RubyMine 4.5 using Ruby 1.9.3, my steps are as follows: Fresh (i.e. having removed all previous ruby and gem directories) install of Ruby 1.9.3, Ruby Gems, DevKit and Rails (following this guide ) - that works fine. I then try to begin working with my team's ruby code. I open up the directory in RubyMine (remembering first to delete the .idea directory) and am prompted to run bundle install which I do (from console) as requested. This

how to make Git ignore .idea files created by Rubymine

允我心安 提交于 2019-11-27 05:03:22
问题 I use Rubymine for Rails projects. Very often, Rubymine makes changes in .idea/* files that I don't care about. But it keeps preventing me from checking out new branches, and makes my version of .idea/ different from my coworkers. We already added .idea/ to .gitignore , but it keeps tracking changes in .idea . How should I do this the right way? Below is one of typical error messages I got: error: Your local changes to the following files would be overwritten by checkout: .idea/workspace.xml

RubyMine 3.0 setup on Windows 7

拟墨画扇 提交于 2019-11-27 02:28:06
问题 All, I downloaded/installed 1.9.2 windows installer, and then RubyMine3.0RC, and installed it. Opening a new Rails project, with mysql selected as the DB, gives the following error when I "RUN" it. D:\ProgramFiles\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/Rob/RubymineProjects/test1/script/rails server -p 3000 -b 127.0.0.1 -e development D:/ProgramFiles/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require':