Show More
Commit Description:
associate logins with users
Commit Description:
associate logins with users
References:
File last commit:
Show/Diff file:
Action:
app/controllers/configurations_controller.rb | 28 lines | 664 B | text/x-ruby | RubyLexer |
jittat
[web] added configurations...
r76 class ConfigurationsController < ApplicationController
before_filter :authenticate
before_filter { |controller| controller.authorization_by_roles(['admin'])}
def index
Jittat Fakcharoenphol
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
r320 @configurations = GraderConfiguration.find(:all,
jittat
[web] added configurations...
r76 :order => '`key`')
end
def reload
Jittat Fakcharoenphol
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
r320 GraderConfiguration.reload
jittat
[web] added configurations...
r76 redirect_to :action => 'index'
end
add best_in_place...
r474 def update
@config = GraderConfiguration.find(params[:id])
respond_to do |format|
if @config.update_attributes(params[:grader_configuration])
format.json { head :ok }
else
format.json { respond_with_bip(@config) }
end
end
end
jittat
[web] added configurations...
r76 end