Sha256: d3943d4e19214be6031c9ef584526cd050473a04afb12324bf1d35f93c5af358

Contents?: true

Size: 1.18 KB

Versions: 7

Compression:

Stored size: 1.18 KB

Contents

<h1>FormTagHelper</h1>

<h2>Buttons</h2>
<%= form_tag posts_path do %>
  <span style="color: red;"><%= @error %></span>
  <%= text_field :post, :body %>
  <table>
    <tbody>
      <tr>
        <td><%= submit_with_popup_tag 'submit_tag' %></td>
        <td><%= submit_with_popup_tag 'submit_tag (with popup options)', with_popup: { src: src_posts_path, features: 'width=300,height=200' } %></td>
        <td><%= submit_with_popup_tag 'submit_tag (with confirm)', data: { confirm: 'Are you sure?' } %></td>
        <td><%= image_submit_with_popup_tag 'submit.jpg', width: 100 %></td>
        <td><%= button_with_popup_tag 'button_tag' %></td>
        <td><%= button_with_popup_to 'button_to' %></td>
    </tbody>
  </table>
  <%= hidden_field_tag :view, @view %>
<% end %>

<h2>Links (without error)</h2>
<%= link_with_popup_to 'link_to', posts_path(post: { body: 'OK' }), method: :post %>
<%= link_with_popup_to_if true, 'link_to_if', posts_path(post: { body: 'OK' }), method: :post %>
<%= link_with_popup_to_unless false, 'link_to_unless', posts_path(post: { body: 'OK' }), method: :post %>
<%= link_with_popup_to_unless_current 'link_to_unless_current', posts_path(post: { body: 'OK' }), method: :post %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
with_popup-0.1.0 spec/dummy/app/views/posts/form_tag_helper.html.erb
with_popup-0.0.7 spec/dummy/app/views/posts/form_tag_helper.html.erb
with_popup-0.0.6 spec/dummy/app/views/posts/form_tag_helper.html.erb
with_popup-0.0.5 spec/dummy/app/views/posts/form_tag_helper.html.erb
with_popup-0.0.4 spec/dummy/app/views/posts/form_tag_helper.html.erb
with_popup-0.0.3 spec/dummy/app/views/posts/form_tag_helper.html.erb
with_popup-0.0.2 spec/dummy/app/views/posts/form_tag_helper.html.erb