Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created January 26, 2012 20:47
Show Gist options
  • Save coderforhire/1685008 to your computer and use it in GitHub Desktop.
Save coderforhire/1685008 to your computer and use it in GitHub Desktop.
def set_status
@ticket.status = "open"
end
@coderforhire
Copy link
Author

def open
@tickets = Ticket.where(:status => "open", :status => "new" ).all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @tickets }
end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment