Sha256: b9871dae95b7ab551b582bca2b4aacac3e12a1bdf479f8a6c90492e48acd2b99
Contents?: true
Size: 413 Bytes
Versions: 9
Compression:
Stored size: 413 Bytes
Contents
<% #This partial is useful for hooks. You don't need to hook in each tab, but you can hook here, that is common to all tabs %> <%= form_for resource, :url => "#",:html => {:onsubmit => "return false;",:multipart=>true, :id=>"tab-form-#{tab.__id__}",:method => resource.new_record? ? :post : :put} do |form| %> <% self.tab_form = form %> <%= render_component *tab.build %> <% end %> <% self.tab_form = nil %>
Version data entries
9 entries across 9 versions & 1 rubygems