Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created November 26, 2011 21:03
Show Gist options
  • Save austinbv/1396288 to your computer and use it in GitHub Desktop.
Save austinbv/1396288 to your computer and use it in GitHub Desktop.
@event = Event.new(@work_appointment)
Rails.logger.debug { " - - @event " + @event.to_json }
outputs : @event {"appt_id":7,"start":"2011-11-28T09:30:00Z","end":"2011-11-28T10:30:00Z"}
format.js { render :template => "admin/work_appointments/update" }
alert('<%= @event.to_json.html_safe %>')
#{&quot;appt_id&quot;:7,&quot;start&quot;:&quot;2011-11-28T09:30:00Z&quot;,&quot;end&quot;:&quot;2011-11-28T10:30:00Z&quot;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment