changes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<li><%= link_to "Listing", pools_path %></li>
|
||||
<li><%= link_to "Search", search_pools_path %></li>
|
||||
<li><%= link_to "New", new_pool_path %></li>
|
||||
<% if @pool %>
|
||||
<% if @pool && !@pool.new_record? %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Show", pool_path(@pool) %></li>
|
||||
<li><%= link_to "Posts", posts_path(:tags => "pool:#{@pool.id}") %></li>
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
<div id="c-pools">
|
||||
<div id="c-new">
|
||||
<h1>New Pool</h1>
|
||||
<%= render :partial => "form", :locals => {:pool => @pool} %>
|
||||
<%= simple_form_for(@pool) do |f| %>
|
||||
<h1>New Pool</h1>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :description %>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
Reference in New Issue
Block a user