Skip to content

Instantly share code, notes, and snippets.

View boblmartens's full-sized avatar

Bob Martens boblmartens

View GitHub Profile
# casStructure.ldif
dn: cn=cas,dc=example,dc=com
objectClass: nsContainer
objectClass: top
cn: cas
dn: cn=services,cn=cas,dc=example,dc=com
objectClass: nsContainer
objectClass: top
cn: services
class InterventionsController < ApplicationController
inherit_resources
actions :create, :update, :edit, :new
nested_belongs_to :patient, :drug_therapy_problem
create! do |success, failure|
success.html do
@intervention.activate!("Manual communication")
end
failure.html { render :action => 'new', :status => :unprocessable_entity }
##
# Calendar helper with proper events
# http://www.cuppadev.co.uk/webdev/making-a-real-calendar-in-rails/
#
# (C) 2009 James S Urquhart (jamesu at gmail dot com)
# Derived from calendar_helper
# (C) Jeremy Voorhis, Geoffrey Grosenbach, Jarkko Laine, Tom Armitage, Bryan Larsen
# Licensed under MIT. http://www.opensource.org/licenses/mit-license.php
##