This file contains 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
require(File.join(File.dirname(__FILE__), '../../../../../', "config", "boot")) | |
require 'rake' | |
require 'rake/testtask' | |
require 'rake/rdoctask' | |
# require 'tasks/rails' | |
# Gives us the ability to remove the default rake tasks before overriding | |
# them with our own commands | |
Rake::TaskManager.class_eval do | |
def remove_task(task_name) |
This file contains 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
1. add this to your gem file | |
gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' | |
2. then run bundle install at the command line | |
3. finally you can run this install of script/generate session user_session | |
rails g authlogic:session user_session |
This file contains 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
def update_maps_key | |
a_config = YAML.load_file "#{RAILS_ROOT}/config/gmaps_api_key.yml" | |
a_config["production"].merge!({self.domain_name => self.key}) | |
File.open("#{RAILS_ROOT}/config/gmaps_api_key.yml", 'w') { |f| YAML.dump(a_config, f) } | |
end |
This file contains 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
--- | |
production: | |
houstonartgalleries.com: !str | |
str: asfgasfg | |
"@_rails_html_safe": false | |
thepochisuperstarmegashow.com: ABQIAAAAzMUFFnT9uH0Sfg76Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDmlRT6e90j135zat56yhJKQlWnkaidDIQ | |
example.com: ABQIAAAAzMUFFnT9uH0Sfg98Y4kbhGFJQa0g3IQ9GZqIMmInSLrthJKGDmlRT98f4j135zat56yjRKQlWnkmod3TB | |
development: ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ | |
test: ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ |
NewerOlder