Skip to content

Instantly share code, notes, and snippets.

@hassox
Forked from anonymous/roles.rb
Created August 23, 2008 13:37
Show Gist options
  • Select an option

  • Save hassox/6917 to your computer and use it in GitHub Desktop.

Select an option

Save hassox/6917 to your computer and use it in GitHub Desktop.
class MerbPrivilege::Roles < MerbPrivilege::Application
def index
@roles = Role.all
@role ||= Role.new
render
end
def create
@role = Role.new(:id => nil, :description => params[:role][:description])
@role.save
index
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment