Skip to content

Commit

Permalink
tag smoothed spectra w "smoothed:1+10" for sample row 1, plus 10 rows
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Sep 22, 2014
1 parent bbd8a48 commit b3187f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webserver/app/controllers/spectrums_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def save
@spectrum = Spectrum.find(params[:id])
if logged_in? && @spectrum.user_id == current_user.id
@spectrum.data = params[:data]
@spectrum.tag(params[:tags],current_user.id) if params[:tags]
render :text => @spectrum.save
else
flash[:error] = "You must be logged in and own the spectrum to edit it."
Expand Down

0 comments on commit b3187f0

Please sign in to comment.