Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

eliminated empty helpers, fixed README

  • Loading branch information...
commit 608be95a4846f27b198ffe3f1e89eb2644c6132e 1 parent 3c4ebf5
@joeellis joeellis authored
View
6 README.markdown
@@ -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!
View
2  app/helpers/categories_helper.rb
@@ -1,2 +0,0 @@
-module CategoriesHelper
-end
View
2  app/helpers/missions_helper.rb
@@ -1,2 +0,0 @@
-module MissionsHelper
-end
View
2  app/helpers/neighborhoods_helper.rb
@@ -1,2 +0,0 @@
-module NeighborhoodsHelper
-end
View
2  app/helpers/password_helper.rb
@@ -1,2 +0,0 @@
-module PasswordHelper
-end
View
2  app/helpers/tags_helper.rb
@@ -1,2 +0,0 @@
-module TagsHelper
-end
View
4 app/models/user.rb
@@ -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?://})
Please sign in to comment.
Something went wrong with that request. Please try again.