Posted by David on Tue 15th May 10:39
download | new post
- #function for the link_to_remote to allow a user to quickly deactivate a query
- def deactivate_remote
- query = Query.find(params[:id])
- query.update(:active => 'no')
- respond_to do |format|
- format.js
- end
- end
- #function for the link_to_remote to allow a user to quickly activate a query
- def activate_remote
- query = Query.find(params[:id])
- query.update(:active => 'yes')
- respond_to do |format|
- format.js
- end
- 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.