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
def set_gmap_markers | |
markers = { | |
:ddtcs => ActionController::Base.helpers.asset_path('marker_DDTCS.png'), | |
:chms => ActionController::Base.helpers.asset_path('marker_CHMS.png'), | |
:all => ActionController::Base.helpers.asset_path('marker_CHMS-DDTCS.png') | |
} | |
@hash = Gmaps4rails.build_markers(@locations) do |location, marker| | |
marker.lat location.latitude | |
marker.lng location.longitude |
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
alias db="cd ~/Dropbox && pwd" | |
alias rr="cd ~/Dropbox/Rails && pwd" | |
alias recreate="bundle exec rake db:drop db:create db:migrate db:seed" | |
alias rmt="bundle exec rake db:migrate db:test:prepare" | |
alias calc="open /Applications/Calculator.app" |
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
require 'spec_helper' | |
describe "Provider Locations" do | |
before(:each) do | |
@provider_location = FactoryGirl.create(:provider_location) | |
end | |
it "is valid with valid attributes" do | |
@provider_location.should be_valid |