Created
January 26, 2012 20:47
-
-
Save coderforhire/1685008 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
def set_status | |
@ticket.status = "open" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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