RailsCasts Pro episodes are now free!

Learn more or hide this

migane's Profile

GitHub User: migane

Comments by

Avatar

Problem is solved, not sure exactly why, but I can run Capybara now.
It is much more strict than Webrat and I have discovered some bugs in my application which did not show up with Webrat.
Thanks for this great episode.

Avatar

Spork (which I'd installed beforehand together with autotest, webrat, and rspec) crashes.
Most probably I'm missing some code to make it run correctly with capybara.

Avatar

I cannot get capybara to work on rails 3.1.0.rc5.
I wonder if somebody knows how to make it work.

Avatar

Actually, you don't need to have a:

ruby
validates_presence_of :password, :on => :create

line in the User model, as under the hood there is a:

ruby
 validates_presence_of password_digest

in ActiveModel lib under active_model/secure_password.rb.
Unfortunately, it has no option to customize the message, making it a nightmare for internationalization.

Avatar

To use highcharts with Rails 3.1.rc4, I've just done the following:

1 - Upgrade to jquery-1.6.1, highcharts 2.1.6

2 - Move highcharts and jquery into vendor/assets/javascripts

3 - Change the call to javascript inside the corresponding views to:

javascript
<%= javascript_include_tag "jquery-1.6.1.min.js", "highcharts", "js/modules/exporting.js" %>