Sha256: 71bb7591b6c47fc57fa4d314a99a530f6c324705286633f733e23209e51af55b
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
- if api_details['method'].present? && %{post get}.include?(api_details['method'].downcase) %hr/ %p %strong Try it out: - full_url = "#{ApiDocs.config.api_url}#{api_details['url']}" %em #{api_details['method']} #{full_url} = bootstrap_form_for '', :url => full_url, :html => {:method => api_details['method'], :target => '_blank', :class => 'form-horizontal', 'data-url' => full_url} do |f| - case params - when Array - api_details['params'].each do |param| = f.text_field param, :label => param, :name => param - when Hash - api_details['params'].each do |param, description| = f.text_field param, :label => param, :name => param, :help_block => description .form-actions = f.submit :send, :class => 'btn-primary'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_docs-0.0.4 | app/views/api_docs/_form.html.haml |