Created
January 27, 2013 19:11
-
-
Save davetapley/4649847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PlaceEventsController < ApplicationController | |
before_filter :authenticate_user! | |
before_filter :weeks_ago_range | |
respond_to :json, only: [:edit, :update] | |
[snip edit and index] | |
def update | |
place_event = current_user.place_events.find params[:id] | |
place_event.update_attributes params[:place_event] | |
respond_with place_event | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment