Created
April 27, 2011 22:39
-
-
Save krainboltgreene/945397 to your computer and use it in GitHub Desktop.
invitato
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 show | |
@invite = Tablevite.find(params[:id]) | |
@event = Event.find(params[:event_id]) | |
render event_path(@event) | |
end | |
Missing template /events/4db86d7db6619e0837000004/tablevite/4db87206b6619e00d7000002 with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :haml], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=>[:en, :en]} in view paths "/Users/andreassaebjoernsen/tableslice.www/app/views", "/Users/andreassaebjoernsen/tableslice.www/vendor/plugins/cartographer/app/views", "/Users/andreassaebjoernsen/.rvm/gems/ruby-1.9.2-p180/gems/devise-1.3.3/app/views", "/Users/andreassaebjoernsen/tableslice.www", "/" | |
Missing template event/show with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :haml], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=>[:en, :en]} in view paths "/Users/andreassaebjoernsen/tableslice.www/app/views", "/Users/andreassaebjoernsen/tableslice.www/vendor/plugins/cartographer/app/views", "/Users/andreassaebjoernsen/.rvm/gems/ruby-1.9.2-p180/gems/devise-1.3.3/app/views", "/Users/andreassaebjoernsen/tableslice.www", "/" | |
def show | |
@event = Event.find(params[:id]) | |
@map = Cartographer::Gmap.new( 'map' ) | |
@map.zoom = :bound | |
@icon = Cartographer::Gicon.new() | |
logger.debug "The current location object:" | |
logger.debug @event.location | |
@map.icons << @icon | |
marker1 = Cartographer::Gmarker.new(:name=> "taj_mahal", :marker_type => "Building", | |
:position => [@event.lat,@event.lng], | |
:info_window_url => "/url_for_info_content", :icon => @icon) | |
@map.markers << marker1 | |
respond_to do |format| | |
format.html # show.html.erb | |
format.xml { render :xml => @event } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment