rubymine

Unable to debug in RubyMine 4.5 using Ruby 1.9.3

感情迁移 提交于 2019-12-17 16:05:40
问题 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

Selenium WebDriver in Ruby: Preventing the test from closing the browser window at end

亡梦爱人 提交于 2019-12-14 03:03:59
问题 I appear to be having the exact opposite problem many other people have - in that my Selenium tests in Ruby will close the browser window at test end, no matter what the end result is. Pass or fail, it will always close the browser. I would like to stop this. Context: Previously I coded tests in Java using IntelliJ IDEA. Browser windows for Selenium tests in this case would NOT close at all period unless you used driver.quit(). This is actually quite useful as it means that the browser window

Issue with upgrade to bootstrap-sass 3.2.0

柔情痞子 提交于 2019-12-14 01:38:04
问题 Is there something else that needs to be referenced/configured when upgrading the bootstrap-sass gem to ~> 3.2.0 ? Using RubyMine 6.3 as the editor and the following in the Gemfile: ruby '2.1.2' gem 'rails', '4.1.1' gem 'sass-rails', '~> 4.0.3' gem 'bootstrap-sass', '3.1.1.1' app/assets/stylesheets/application.css.scss will be happy with @import 'bootstrap'; However , once the bootstrap-sass gem is upgraded to its current version by changing the Gemfile reference to (and then running bundle

Process finished with exit code -1073741819

别说谁变了你拦得住时间么 提交于 2019-12-13 23:20:03
问题 When I run a feature file in RubyMine it will randomly crash with this error. Sometimes it will run one scenario other times it will run a couple before giving this error but it always does. We thought it had something to do with the version of IE we were using but it seems to occur with all versions. Also this issue doesn't seem to affect everyone and we're unsure as to what causes it because the settings on each environment are the same... Any ideas? 回答1: There shoudn't be any crashes in

Cannot resolve file in RubyMine

两盒软妹~` 提交于 2019-12-13 12:01:14
问题 I am trying to use RubyMine (v6.3.3) for my rails project. After I added bootstrap-sass gem according its instruction in https://github.com/twbs/bootstrap-sass, RubyMine complains about the line I added in application.js file. However the file is actually in the scope of the projects' external libraries. The project itself works as expected, just this RubyMine warning annoyed me. Did I miss any step in configuration? 回答1: It is confirmed to be a RubyMine issue. bootstrap-sass gem has added

Rubymine can't find SDK. Where is it?

我与影子孤独终老i 提交于 2019-12-13 11:34:02
问题 I have just installed rubymine 5.4.3.2.1 and am trying to start an example project. The problem i am having is that rubymine is asking for a SDK. So where do i point it to? 回答1: If you are on windows its where ever you installed ruby under the bin folder as diplayed here If you are on a unix base system go to the terminal and enter which ruby and you will point it to the directory listed. Assuming you have ruby installed 回答2: You should point it to the where you keep your Ruby Binary File ,

Adding/Updating column in a Model using RubyMine

倖福魔咒の 提交于 2019-12-13 04:23:59
问题 I'm working on a web app that basically interacts with a db table through a form. Recently I had to make some changes which resulted in me adding another column to the db table. I'm using RubyMine for developing and can't figure out how to update the model so that it contains the new column. I've added it inside the model as so: class Student < ActiveRecord::Base attr_accessible :f_name, :floor_pref, :l_name, :is_active validates_presence_of :f_name, :floor_pref, :l_name end I've also added

RubyMine support for jQuery

泪湿孤枕 提交于 2019-12-12 17:56:39
问题 I'm using RubyMine 3.1 to develop a Rails3 app and today I switched from Prototype to jQuery for my UJS needs. After customizing everything using this example and restarting RubyMine, all the auto-complete suggestions and the code inspector errors are still being based on Prototype. What else should I do to get the JavaScript code completion & Co. tailored to jQuery? (related to: Remove Prototype support from RubyMine: how to?) 回答1: This article to enable jQuery code completion in RubyMine

How to run a single row of a Cucumber scenario outline example table in RubyMine?

六眼飞鱼酱① 提交于 2019-12-12 14:33:54
问题 I'm running tests using RubyMine (forced upon me). I have some features that use the Scenario Outline and Example format. Is there a way I can run only a certain row from the Example table? Example: Examples: | user_row | row1 | row2 | | 1 | 2 | 4 | | 51 | 51 | 97 | | 98 | 98 | 147 | I only want to run the test from the 2nd row (user_row 51). I can't seem to find anything with the help in RubyMine for this. 回答1: Cucumber itself does support running a single example. RubyMine doesn't support

RubyMine - How to change end of line character to Windows?

不羁的心 提交于 2019-12-12 14:19:32
问题 I changed a RubyMine settings few days back. It was related to changing the end of line character from '\r\n' to something else, so that it is only Mac compatible. Now, each file I edit is changed completely in git diff. Also, I can't recall which setting option was it. Any guesses? 回答1: File | Line Separator (or the same in status bar, next to file encoding) which will allow to see and change line ending for current file . For newly created files check Settings (Preferences on Mac) | Code