diff --git a/app/views/role/_form.rhtml b/app/views/role/_form.rhtml
index b49d4ce..fc56669 100644
--- a/app/views/role/_form.rhtml
+++ b/app/views/role/_form.rhtml
@@ -1,12 +1,12 @@
<%= error_messages_for :role %>
-<% labelled_form_for :role, @role, :url => (mode == :edit) ? {:action => 'update', :id => role} : {:action => 'create'} do |f| %>
+<% labelled_form_for :role, role, :url => (mode == :edit) ? {:action => 'update', :id => role} : {:action => 'create'} do |f| %>
<%= f.text_field :name %>
<%= _('Permissions:') %>
<% permissions.keys.each do |p| %>
- <%= labelled_check_box(permission_name(p), (check_box_tag "role[permissions][]", p, @role.has_permission?(p))) %>
+ <%= labelled_check_box(permission_name(p), "role[permissions][]", p, role.has_permission?(p)) %>
<% end %>
<% button_bar do %>
--
libgit2 0.21.2