%= error_messages_for :role %> <% form_for(:role, :url => role_path(@role.code), :html => { :id => 'role_form', :method => :put }) do |f| %> <%= render :partial => 'role_form' %>
<%= submit_tag "Update" %>
<% end %> <% content_for :sidebar do -%> <%= new_role_link -%>