rubymine

Connect to DB through Vagrant using RubyMine

廉价感情. 提交于 2019-12-06 05:12:06
问题 I just started working on a ruby project which is set up through Vagrant. I've successfully gotten a remote interpreter working but I'm having trouble connecting to databases. Here's my Vagrantfile : # This Vagrantfile is for development use only. VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "markusproject/ubuntu" # Allow instance to see project folder. # Warning: This may cause problems with your Vagrant box! # Enable at your own risk.

Error “cannot load such file — 2.0/Console_ext” running unit tests in RubyMine

匆匆过客 提交于 2019-12-06 01:48:58
I'm trying to get started running unit tests for a sample ruby on rails application however RubyMine is printing out the following error whenever I try and run unit tests I've also gotten the same error when running bundle install since I added gem "win32console", '1.3.0' to my Gemfile. Here is the error in text form Exception message: cannot load such file -- 2.0/Console_ext ["D:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1.3.0-x86-mingw32/lib/Win32/Console.rb:12:in `require'", "D:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1.3.0-x86-mingw32/lib/Win32

Exception message: no such file to load in rails application

柔情痞子 提交于 2019-12-05 22:31:18
I have included test_helper.rb under test in my rails application. I have even included require 'test_helper' in my test.rb files under test->unit . When I run all the test in RubyMine for the application, I get the following error: I have the latest versions of all RubyMine 3.2, ruby 1.9.2p290 and Rails 3.1.0. /Users/im/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Applications/RubyMine 3.2.4.app/rb/testing/runner/tunit_in_folder_runner.rb Testing started at 3:19 PM ... Work directory: /Users/im/RubymineProjects/BackChannelApp} Loading files.

Getting Susy and Compass installed with ruby on rails

匆匆过客 提交于 2019-12-05 21:34:33
I'm just starting with ruby on rails and one of the first things I tried to do was install the gems compass and susy. After figuring out that I needed to include them in the gemfile (I'm using RubyMine and thought it would do it for me), I still got a missing "Could not find", "susy" error when I tried to import susy into one of my css.scss files. I have ruby version 1.9.3 (194) and ruby gems version 1.8.23 Any help on which gems (and versions) I need in my bundle, how to make sure they get in the project bundle, is greatly appreciated. I'm on rails 3.2.7 and use Susy (and Compass) like this.

Why RubyMine 2.0.2 starts Webrick on different port each time I run/debug my app?

早过忘川 提交于 2019-12-05 18:45:41
Each time I start my Rails 2.3.8 webapp under RubyMine, it's using a different port. This drives me mad, since I've to change the URL in the browser each time I want to test something. I'm unable to find any configuration option to change that. Anyone? This may not help because I'm using RubyMine 3, however, there is a dropdown menu in my toolbar for selecting the different development environments (e.g. production, development). The dropdown menu is to the left of the green "Run" triangle. If you click on the list one of the options is "Edit Configurations" - this pops open a window that has

Running test from RubyMine gives 'cannot load such file'?

淺唱寂寞╮ 提交于 2019-12-05 15:47:08
I have a test which runs as expected from the command line with: bundle exec rake test TEST=test/my_test.rb However, when I run the test from RubyMine I get: require': cannot load such file -- my_test_helper_gem/test_helper (LoadError) When I cmd+click on the require statement in my_test, RubyMine opens the expected source code. Any suggestions of how to resolve this? Possibly it works for the command line due to some magic related to rake ? 来源: https://stackoverflow.com/questions/40002746/running-test-from-rubymine-gives-cannot-load-such-file

Change GIT login/username in IntelliJ IDEA, RubyMine etc

ⅰ亾dé卋堺 提交于 2019-12-05 15:43:47
Authentication login/username for my GIT account changed. How do I tell this to my IntelliJ product? GIT record login-name in remote repository URL. You can change that in IntelliJ product in couple of ways. Quick way Type CTRL + SHIFT + A to open Enter action or option name dialog Type Remotes... to filter the list as in image Select Remotes... for Git (first selection on image) and following dialog is openede In Git Remotes dialog, use pencil icon to open Define Remote dialog Press OK to confirm Re-enter your password and optionally have IntelliJ store it. Point and Click way Select VCS menu

How can I navigate lines of files with the keyboard quicker in IntelliJ?

*爱你&永不变心* 提交于 2019-12-05 14:20:08
Is there a keyboard shortcut or how can I set up a keyboard shortcut in IntelliJ to either: Go up/down several lines at a time (e.g. 5 or 10) Jump up/down a method in a class Go into a method hierarchy and then scroll up and down a method list Or are their better ways to quickly navigate through code files with the keyboard? Heather92065 IntelliJ is incredibly flexible with so many shortcuts it's hard to remember them all. I didn't find a current builtin solution for your first shortcut request: "1. Go up/down several lines at a time (e.g. 5 or 10)" However, a macro can be created and mapped

How do I use bundle exec rake on RubyMine?

扶醉桌前 提交于 2019-12-05 13:18:47
问题 i found this post in stack overflow rubymine error: You have already activated rake 10.0.3, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this that offesr two possible solutions: ignoring global gem path in the project settings uninstalling the problematic gem So far none of these solutions worked for me: I tried ignoring the global gem path, but I keep getting the same error message. With regards to uninstalling the gem, well, that's not possible as I have other projects

RubyMine search project for file by path

旧城冷巷雨未停 提交于 2019-12-05 11:34:38
In SublimeText 2 I can do: cmd + t And then type either file names or folder names and the results displayed are files that either match files that match the term i'm searching for for files that are in a subfolder of the term i'm searching for, for example if I had directory structure like so: / /models /users /orders /products /views /users edit.rb add.rb /orders edit.rb add.rb I could do cmd + t And the type "orders" and the only two options that would show up would be the /orders/edit.rb and /orders/add.rb file which i could key navigate down or type add more to the search term "orders