Sha256: d4a0303ae89d0d6d669fb84a18f0d59a282c2e15fddb77a871f960df920ccb09

Contents?: true

Size: 651 Bytes

Versions: 3

Compression:

Stored size: 651 Bytes

Contents

<h1>Listing posts</h1>
<%= form_tag posts_path, :method => 'get' do %>
  Search :
  <%= text_field_tag :search, params[:search] %>
  <%= submit_tag "Search", :name => nil %>
<% end %>
<table>
  <tr>
    <th>Title</th>
    <th>Content</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @posts.each do |post| %>
  <tr>
    <td><%= post.title %></td>
    <td><%= post.content %></td>
    <td><%= link_to 'Show', post %></td>
    <td><%= link_to 'Edit', edit_post_path(post) %></td>
    <td><%= link_to 'Destroy', post, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Post', new_post_path %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mysql_simple_fulltext-0.0.3 test/dummy/app/views/posts/index.html.erb
mysql_simple_fulltext-0.0.2 test/dummy/app/views/posts/index.html.erb
mysql_simple_fulltext-0.0.1 test/dummy/app/views/posts/index.html.erb