Created
December 3, 2008 23:25
-
-
Save nesquena/31757 to your computer and use it in GitHub Desktop.
My rails template for rg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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