Skip to content

Instantly share code, notes, and snippets.

@nesquena
Created December 3, 2008 23:25
Show Gist options
  • Save nesquena/31757 to your computer and use it in GitHub Desktop.
Save nesquena/31757 to your computer and use it in GitHub Desktop.
My rails template for rg
template(:nesquena) do
gem 'json'
gem 'mislav-will_paginate'
gem 'mocha'
gem 'thoughtbot-shoulda'
gem 'quietbacktrace'
gem 'haml'
gem 'authlogic'
plugin 'squirrel', :git => 'git://github.com/thoughtbot/squirrel.git'
plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git'
plugin 'limerick_rake', :git => 'git://github.com/thoughtbot/limerick_rake.git'
plugin 'mile_marker', :git => 'git://github.com/thoughtbot/mile_marker.git'
plugin 'factory_girl_on_rails', :git => 'git://github.com/technicalpickles/factory_girl_on_rails.git'
plugin 'asset_auto_include', :git => 'git://github.com/evilchelu/asset_auto_include.git'
plugin 'active_form', :git => 'git://github.com/nesquena/active_form.git'
plugin 'xss_terminate', :git => 'git://github.com/jasherai/xss_terminate.git'
plugin 'semantic_form_builder', :git => 'git://github.com/nesquena/semantic_form_builder.git'
plugin 'resource_controller', :git => 'git://github.com/giraffesoft/resource_controller.git'
plugin 'include_by_default', :git => 'git://github.com/jcoglan/include_by_default.git'
plugin 'bundle-fu', :git => 'git://github.com/timcharper/bundle-fu.git'
plugin 'form_test_helper', :svn => 'http://form-test-helper.googlecode.com/svn/form_test_helper'
plugin 'google_ajax_libraries_api', :git => 'git://github.com/rpheath/google_ajax_libraries_api.git'
plugin 'zoned', :git => 'git://github.com/pjhyett/zoned.git'
plugin 'coulda', :git => 'git://github.com/hardbap/coulda.git'
initializer 'hoptoad.rb' do
HoptoadNotifier.configure do |config|
config.api_key = 'HOPTOAD-KEY'
end
end
initializer 'action_mailer_configs.rb' do
ActionMailer::Base.smtp_settings = {
:address => "domain.com",
:authentication => :login, # :plain, :login, :cram_md5
:user_name => "user",
:password => "password",
:port => 25
}
end
initializer 'field_error_proc.rb' do
# Overwrite field error behavior to use spans
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
%(<span class="field-with-errors">#{html_tag}</span>)
end
end
initializer 'requires.rb' do
Dir[File.join(RAILS_ROOT, 'lib', 'extensions', '*.rb')].each do |f|
require f
end
Dir[File.join(RAILS_ROOT, 'lib', '*.rb')].each do |f|
require f
end
Dir[File.join(RAILS_ROOT, 'test', 'mocks', RAILS_ENV, '*.rb')].each do |f|
require f
end
end
initializer 'time_formats.rb' do
{ :long_date => "%a, %b %d, %Y", :humanized_time => "%I:%M %p",
:humanized_date => "%B %d", :humanized => "%I:%M %p %m/%d/%Y",
:simple_date => "%m/%d/%y" }.each do |k, v|
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(k => v)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment