pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Ruby paste-bin - collaborative debugging tool View Help


Posted by David on Tue 15th May 10:39
download | new post

  1. #function for the link_to_remote to allow a user to quickly deactivate a query
  2.   def deactivate_remote
  3.     query = Query.find(params[:id])
  4.     query.update(:active => 'no')
  5.     respond_to do |format|
  6.       format.js
  7.     end
  8.   end
  9.  
  10.   #function for the link_to_remote to allow a user to quickly activate a query
  11.   def activate_remote
  12.     query = Query.find(params[:id])
  13.     query.update(:active => 'yes')
  14.     respond_to do |format|
  15.       format.js
  16.     end
  17.   end

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings