Skip to content

Instantly share code, notes, and snippets.

@davetapley
Created January 27, 2013 19:11
Show Gist options
  • Save davetapley/4649847 to your computer and use it in GitHub Desktop.
Save davetapley/4649847 to your computer and use it in GitHub Desktop.
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