Class: Cfp::RanksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cfp/ranks_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
11
12
13
14
# File 'app/controllers/cfp/ranks_controller.rb', line 8

def create
  @rank = find_or_create_rank
  @rank.value = params[:value]
  @rank.save!

  render :json => @rank
end