<%= error_messages_for :style %> <% form_for(:style, :url => style_path(@style), :html => { :method => :put }) do |f| %> <%= render :partial => 'style_form' %>

<%= submit_tag "Update" %>

<% end %> <% content_for :sidebar do -%> <%= new_style_link -%>
<%= show_style_link(@style) -%>
<% end -%>