This HAML:
- b = { :base_dose => 25.1 } #or any Ruby object that responds to :to_json
.patient-drug-dialog{metadata(b)}
Generates this HTML:
| /* | |
| * jQuery Autocomplete plugin 1.1 | |
| * | |
| * Copyright (c) 2009 Jörn Zaefferer | |
| * | |
| * Dual licensed under the MIT and GPL licenses: | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.gnu.org/licenses/gpl.html | |
| * | |
| * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $ |
| # When I select 'It is 1" long' from 'hotdog size' | |
| When /^I select '([^\']*)' from '([^\']*)'$/ do |value, field| | |
| select(value, :from => field) | |
| end |
| Help save MySQL; Sign the petition | |
| [email protected] | |
| -- | |
| Hi! | |
| I am contacting you because you have in the past shown interest in | |
| MySQL and from that I assume you are interested in the future | |
| well-being of MySQL. |
| gem 'aasm', '2.1.3', :require => 'aasm' | |
| require 'aasm' |
| source :gemcutter | |
| gem 'rails', '2.3.5', :require => nil | |
| gem 'responders', '0.4.2' | |
| gem 'mysql', '2.8.1' | |
| gem 'nokogiri', '1.4.0' | |
| # NOTE: This is odd, the :require => 'aasm' is supposed to work? | |
| gem 'aasm', '2.1.3', :require => 'aasm' | |
| require 'aasm' |
| # Hacky patch to get cancan to work with inherited resource | |
| module CanCan | |
| class ResourceAuthorization | |
| def resource | |
| @options[:id] = @controller.send(:resource).id rescue ActiveRecord::RecordNotFound | |
| @resource ||= ControllerResource.new(@controller, @controller.send(:resource_class), parent_resource, @options) | |
| end | |
| end | |
| end |
| class Committee | |
| include Ripple::Document | |
| one :municipality | |
| many :docket_items | |
| many :memberships | |
| property :name, String, :presence => true | |
| property :description, String | |
| timestamps! |
| describe Committee do | |
| it { should link_one(:municipality) } | |
| end |
| motttttttttt0ttttt9iiiiiiiiii666i0o["777iii j cgh <F6>`aqq,ae 3-iiiu;qqggggg zzzzzzzzziiw3 |