The 'axlsx' gem (https://github.com/randym/axlsx) depends on rubyzip. After the bundle
command the error require': cannot load such file -- zip/zip (LoadError)
appeared by starting the rails server.
Possible solution: Add gem 'zip-zip'
to your Gemfile and it works.
we had the same error and google helped us find the linked solution.
Just require "resolv-replace.rb"
during app startup and all should be good.
Further information:
Start mysql in safe mode: sudo mysqld_safe --skip-grant-tables
Connect to mysql
database with mysql mysql
Reset password with Update user Password = PASSWORD('root') where User = 'root' and HOST = 'loalhost';
Follow the nokogiri installation instructions at http://nokogiri.org/tutorials/installing_nokogiri.html
If you run into compiler issues you may have to link the gcc compiler manually by
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
Adjust key binding:
{ "keys": ["super+alt+7"], "command": "table_cleaner"}
Adjust settings:
Ever wondered how to get rid of the trailing spaces?
just add this to your user settings ( cmd + , ):
"trim_trailing_white_space_on_save": true
And every time you save a file Sublime will trim all the trailing spaces for you.
If you haven´t seen whitespaces yet, you should add this package: https://github.com/SublimeText/TrailingSpaces and add these lines:
"trailing_spaces_highlight_color": "invalid",
"trailing_spaces_file_max_size": 1000,
When using capybara (for request specs) together with vcr while trying to run with selenium throws the following error:
VCR::Errors::UnhandledHTTPRequestError:
================================================================================
An HTTP request has been made that VCR does not know how to handle:
GET http://127.0.0.1:62789/__identify__
Configuring VCR to ignore localhost requests solve the problem.
c.ignore_localhost = true
Add
Capistrano::Configuration::Namespaces::Namespace.class_eval do
def capture(*args)
parent.capture *args
end
end
to your deploy.rb file to avoid syntax errors
remove (large) files from a git repository. this is either for large files or for ones containing sensitive data.
also see:
discover large files in git repository
find large files in the history of a git repository (to remove them later)
see also:
Remove large files from git repository
JS Utility that triggers an event when an HTML element is scrolled in to the viewport.
Test / check emails sent by your application on your local system
Sublime Text 2 doesn't have out of the box support for cucumber and package control doesn't provide anything.
Adding support to run tests from within sublime text 2: RubyText Package
Add syntax highlighting for Cucumber (Gherkin): Cucumber Syntax
Maybe you'll run into broken test output. Check out this (tmp.) solution until the next ...