Changeset 1292
- Timestamp:
- 01/12/08 20:14:13 (9 months ago)
- Files:
-
- plugins/merb_helpers/lib/merb_helpers/form_helpers.rb (modified) (1 diff)
- plugins/merb_helpers/spec/merb_helpers_spec.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/merb_helpers/lib/merb_helpers/form_helpers.rb
r1279 r1292 66 66 obj.is_a?(Symbol) ? instance_variable_get("@#{obj}") : obj 67 67 end 68 69 # Creates a generic HTML tag 70 def tag(tag_name, contents, attrs = {}) #:nodoc: 71 open_tag(tag_name, attrs) + contents.to_s + "</#{tag_name}>" 72 end 73 68 74 69 # Generates a form tag, which accepts a block that is not directly based on resource attributes 75 70 # plugins/merb_helpers/spec/merb_helpers_spec.rb
r1223 r1292 2 2 require 'merb_helpers' 3 3 4 include Merb:: ViewContextMixin5 include Merb::ErubisCaptureMixin 6 includeMerb::Helpers::Form4 include Merb::ErubisCaptureMixin, 5 Merb::ViewContextMixin, 6 Merb::Helpers::Form 7 7 8 8 describe "error_messages_for" do
