Skip to content

Instantly share code, notes, and snippets.

# ==> ORM configuration in file devise.rb
require 'devise/orm/active_record'
# ==> Application configuration in application.rb
config.generators do |g|
g.orm :active_record
end
Add to file [engine_path]/application.css
//= require twitter/bootstrap
$(document).ready(function(){
/* Your javascripts goes here... */
});
Add to file [engine_path]/application.css
/*
*= require bootstrap_and_overrides
@jurikern
jurikern / Rails & Redis
Created July 9, 2012 11:52
Redis integration with Rails
http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html
@jurikern
jurikern / Resque error description
Created May 10, 2012 20:36
Resque and resque-scheduler bug on production environment
PG::Error: ERROR: prepared statement "a3" already exists :
SELECT COUNT(*) FROM pg_class c LEFT JOIN pg_namespace n ON n.on = c.rel namespace WHERE c.relkind in ('v','r') AND c.relname = $1 AND n.nsp name = ANY (current_schema(false))