Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

When a paperclip attachment gains a new style and you have many attachments, reprocessing can take ages. This is because...

has_attached_file( :avatar, :styles => { :large => "300x300", :small => "100x100" }, :convert_options => { all => "-colorspace RGB" } )

script/runner -e development 'Article.all.each { |a| a.image.reprocess! if a.image.exists? }; "done"'

To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...

Install gem and plugin sudo gem install parallel script/plugin install git://github.com/grosser/parallel_tests.git Adapt config/database.yml test: database: xxx_test<%= ENV...

ActsAsSolr::Post.execute(Solr::Request::Delete.new(:query => "#{Location.solr_configuration[:type_field]}:#{ModelClass}")) ActsAsSolr::Post.execute(Solr::Request::Commit.new)

makandra dev

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

jqueryElement.is(':checked')

github.com

before transition before validation after validation before save after save after transition Aborting the callback chain See Cancel the ActiveRecord...

makandra dev
github.com

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...

pathf.com

A while back, I had a requirement to persist a record of which email addresses were sent an email through...

makandra dev
thoughtbot.com

Squirrel is an enhancement for ActiveRecord’s find method that allows programmers to query the database using a more Rubyish...

tagaholic.me

Rails’ script/console makes it easy to fetch, view and edit your database records. But can you edit those records as...

code.google.com

Flot is a pure Javascript plotting library for jQuery. It produces graphical plots of arbitrary datasets on-the-fly client...

bark.metacasa.net

Unfortunately, by default plugin tests are pretty bland. They use the plain unit test suite supplied by Ruby, and not...

lambie.org

I’m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from...

magicscalingsprinkles.wordpress.com

Cache Money is a plugin for ActiveRecord that transparently provides write-through and read-through caching functionality using Memcached. With...

code.google.com

MMM (MySQL Master-Master Replication Manager) is a set of flexible scripts to perform monitoring/failover and management of MySQL Master...

socghop.appspot.com

Finish the remainder of the ActiveModel todo list (observers, callbacks, validations, scoping, and serialization) in addition to associations. Also wire...

aub.github.com

Record Filter gives you the full power of ActiveRecord's query building tools with a heaping helping of DSL thrown...

github.com

Capistrano recipes for database backups before migrations, passenger deployment strategy, release tagging in Git repos.