anyone know of any issues using a link_to_remote to change the state of the database? I'm taking about issues with spiders, google accelerator etc. Twitter seems to do it with no problem. Thanks
Issues using a link_to_remote to change the state of the database?
160 views Asked by dangerousdave At
2
There are 2 answers
1
dangerousdave
On
I'll try to elaborate. I understand its dangerous to have a html link change the state of the database, for example, delete an article. If a spider follows that link, or a tool such as google accelerator follows that link, then the article will be unintentially deleted.
I was wondering if these problems also exist for a link_to_remote link. Twitter uses an ajax link to add or delete searches, and i was wondering why the issues i mention above were not a problem for them.
Related Questions in RUBY-ON-RAILS
- How to display legend box in tooltip text for amCharts 5 in Rails application?
- how to integrate cashfree payment gateway in ruby on rails project
- RSpec Capybara throwing Selenium error when trying to click a button with browser confirm
- rails minitest not picking up fixture properly, instance variable not percolating
- Duplicate GET requests - Rails & Heroku
- How to stub out current_user in JWT model for Rspec?
- NameError in Home#index
- Verifying Google Identity OAuth2 token with Ruby
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- why is mission_control-jobs erroring with load path error?
- Rescuing validation errors from a polymorphic association
- New error on random number assigned to local variable , Rails
- How to fix error in model with gem lockbox
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- controller test_methods generating two errors intermittently
Related Questions in AJAX
- window.location.href redirects but is causing problems on the webpage
- Js variable to php using ajax
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- how do I change a URL with form to include additional selection
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Opening modal through Update button with specified ID using ajax
- Events disappear randomly for full calendar module
- Ajax call reloads page in FrontAccounting, a PHP ERP solution
- Add newly added record to select2 element
- AJAX query cascading dropdown in django
- Failed to load resource: the server responded with a status of 403 () - SCRIPT - WordPress
- Maintaining search and sort state across paginated results in web application
- Getting POST 500 Internal server error while sending request via ajax call
- Wordpress server side datatable filtering
- Having a problem in datatables and fullcalendar scripts
Related Questions in RJS
- access Stimulus JS from rails RJS
- How to replace prototype-rails gem when upgrading rails from 3 to 5?
- Hacking RJS behaviour in Rails 5
- RJS Dynamic update ActionView::Template::Error (undefined method `each' for nil:NilClass)
- How to convert existing rjs to use jQuery in Rails 4
- r.js optimizer - building an all inclusive js with some modules, and some shims
- How can I mix inline ruby code with my client side RJS?
- Rails2: RJS - Javascript events are not working when on page updates remotely
- Using javascript in variable in rails
- Requirejs Optimizes multiple projects or pages
- Contorller for ng-include partial undefined when minified
- Problems with Parallel.js/WebWorker and optimized code
- Understanding r.js optimizer for whole project
- How do I tell RequireJS to look in a subdir for certain modules?
- Durandal Weyland/Requirejs optimizer with kendo ui dataviz
Related Questions in LINK-TO-REMOTE
- Link_to remote:true not rendering a partial
- How to track rails 5 remote link_to to show spinner (I'm using turbolinks 5)
- Why does adding ":remote => true" cause my file download not to launch?
- link_to tag not responding to javascript after setting remote option as true in rails 4
- Ruby on Rails - Link_to object with url parameters
- Add extra data in ajax:beforeSend (link_to)?
- Rails 4 link_to method: :post and remote: true strange behavior
- Ruby on Rails: Open Modal Box Link doesn't work Update: link_to_remote
- Parameters with rails link_to new_path remote
- click link on bottom of the page taking to top of the page
- rails link_to creates unwanted confirmation message in firefox and does not work in safari
- Rails passing a list of objects to another controller with link_to_remote
- how to work on ajax using link to remote in rails 3.2
- Callback after Rails link with data-remote="true" and data-method="PUT"
- Rails dynamic increasing button
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Generally anything engaged only with JavaScript or using a non-GET method is safe from this sort of thing. Rails also has a special field send with each POST to ensure that the form was generated by the application and not a third-party site.
This is why in Rails 2.x the destroy methods require DELETE to be routed properly. Prior to this there were GET-based destroy calls with a slightly different path and that created the exact problems you are describing.