Changeset 1292

Show
Ignore:
Timestamp:
01/12/08 20:14:13 (9 months ago)
Author:
sethrasmuss..@gmail.com
Message:

moved tag() helper to merb proper with the rest of the basic tag helper methods.. update to merb as of this commit and merb_helpers will work as it should, otherwise it will hit the tag() method from the hpricot matchers and raise argument errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/merb_helpers/lib/merb_helpers/form_helpers.rb

    r1279 r1292  
    6666        obj.is_a?(Symbol) ? instance_variable_get("@#{obj}") : obj 
    6767      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       
    7469      # Generates a form tag, which accepts a block that is not directly based on resource attributes 
    7570      #  
  • plugins/merb_helpers/spec/merb_helpers_spec.rb

    r1223 r1292  
    22require 'merb_helpers' 
    33 
    4 include Merb::ViewContextMixin 
    5 include Merb::ErubisCaptureMixin 
    6 include Merb::Helpers::Form 
     4include Merb::ErubisCaptureMixin, 
     5        Merb::ViewContextMixin, 
     6        Merb::Helpers::Form 
    77 
    88describe "error_messages_for" do