Sha256: 626522417c8a5bf92e876e6c4b80c052a8834f0fab27a847be5aa56989b4e891

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 Bytes

Contents

module ActionView
	module Helpers
		module FormHelper
      		def p_text_field(object_name, method, options = {})
        		Tags::TextField.new(object_name, method, self, options).p_render
      		end
      		
      		def p_text_area(object_name, method, options = {})
        		Tags::TextArea.new(object_name, method, self, options).p_render
      		end 
      		
     	 	def p_button(value = nil, options = {}, &block)
        		value, options = nil, value if value.is_a?(Hash)
        		value ||= submit_default_value
        	    @template.p_button_tag(value, options, &block)
      		end       	 		     		
        end
    end       
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prime-rails-0.0.7 lib/prime/rails/form_helper.rb
prime-rails-0.0.6 lib/prime/rails/form_helper.rb
prime-rails-0.0.5 lib/prime/rails/form_helper.rb
prime-rails-0.0.4 lib/prime/rails/form_helper.rb
prime-rails-0.0.3 lib/prime/rails/form_helper.rb