sudo gem install zip git clone git://github.com/rtomayko/date-performance.git cd date-performance rake package:build cd dist sudo gem install...
ActsAsSolr::Post.execute(Solr::Request::Delete.new(:query => "#{Location.solr_configuration[:type_field]}:#{ModelClass}")) ActsAsSolr::Post.execute(Solr::Request::Commit.new)
Solr listens to different ports for different environments. Start Solr (and hide useless output) rake solr:start PORT=8981 &>/dev/null...
script/cucumber features/feature_name.feature Or, if you don't care about speed, you can use rake: rake features FEATURE=features/feature_name.feature
To improve installation times of gems you can use the following approach: gem install xyz --no-document To permanently ignore...
To call a class method (or static method) from an instance method: class.method() To call a class method from a...
This can happen during development when classes without automatic reloading are pointing to classes with automatic reloading. E.g. some class...
sudo gem install rails --version="=1.2.3" rails _1.2.3_ new-project-folder
sudo apt-get install unzip rake rails:freeze:edge RELEASE=2.2.2
Append this to your ~/.bashrc: export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s...
To run a single test file: rake test:units TEST=test/unit/post_test.rb rake test:functionals TEST=test/functional/posts_controller_test.rb rake test:integration TEST...
tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html
If you would like to checkout the branch groups, you can simply say this in recent versions of Git:
This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com...
jqueryElement.is(':checked')
In Ubuntu your ALT key is locked when you're working in VirtualBox. There are two workarounds for this:
before transition before validation after validation before save after save after transition Aborting the callback chain See Cancel the ActiveRecord...
You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...
Ruby Rails Any gem
When you include a non-existing Javascript file, you probably won't notice it during development. But with caching active...
Gem to provide nice looking urls ("/blog/the-greatest-bug-i-never-fixed"). If you don't need anything too special (like i18n for the urls...
Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby. It could be run periodically from a...
Given a list of acceptable elements and attributes, Sanitize will remove all unacceptable HTML from a string.
With Flash Player 10, the FileReference.browse and FileReference.download operations may be initiated only through ActionScript that originates from user interaction...