Permalink
Browse files

eliminated empty helpers, fixed README

  • Loading branch information...
1 parent 3c4ebf5 commit 608be95a4846f27b198ffe3f1e89eb2644c6132e @joeellis joeellis committed Jul 24, 2011
View
@@ -10,6 +10,8 @@ This project was created by the generous volunteers who participated in the seco
Also, giving credit where credit is due: [Prtlnd](http://www.prtlnd.com) | [Des Mob](http://www.desmob.com)
+
+
Development
===========
Just follow these steps to get started on submitting pull requests!
@@ -19,4 +21,8 @@ Just follow these steps to get started on submitting pull requests!
* run "bundle install"
* run "rake db:setup"
* run "rails server" and double check everything is working for you.
+ * run "rake db:test:prepare" to setup the test database
+ * in a separate terminal window, run "guard" to setup the testing suite
* Change and submit a pull request back to us! Also, please try to have a corresponding test to accompany whatever change you make if you can. Otherwise we have to do it, and that makes us sad :(
+
+Also, there are folks at Ruby Bayou every Tuesday at 7pm who are also probably hacking around on this. Feel free to come by and join if you'd like to help but aren't sure where / how to start!
@@ -1,2 +0,0 @@
-module CategoriesHelper
-end
@@ -1,2 +0,0 @@
-module MissionsHelper
-end
@@ -1,2 +0,0 @@
-module NeighborhoodsHelper
-end
@@ -1,2 +0,0 @@
-module PasswordHelper
-end
@@ -1,2 +0,0 @@
-module TagsHelper
-end
View
@@ -22,7 +22,7 @@ class User < ActiveRecord::Base
validates :missions, :length => { :minimum => Constants::MinimumMissions, :message => "You must have at least one mission to be listed."}
validate :avatar_size
- before_save :fix_urls
+ before_save :format_urls
accepts_nested_attributes_for :missions, :reject_if => proc {|attributes| attributes['statement'].blank? }
@@ -42,7 +42,7 @@ def avatar_size
end
end
- def fix_urls
+ def format_urls
self.url1 = url1.gsub(%r{(^https?://twitter.com/(#!/)?|@)}, '') unless url1.blank?
self.url2 = "http://#{url2}" if !url2.blank? && !url2.match(%r{^https?://})
self.url3 = "http://#{url3}" if !url3.blank? && !url3.match(%r{^https?://})

0 comments on commit 608be95

Please sign in to comment.