Posted by David on Tue 15th May 10:30
download | new post
- #function for the link_to_remote to allow a user to quickly activate a query
- def activate_remote
- query = Query.find(params[:id])
- query.active = 'yes'
- if query.save
- @str = 'yes'
- else
- @str ='no'
- end
- 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.