...your cookies. There is simply no case when the browser would talk to the server via unencrypted http:// requests. Why you might need secure-only cookies anyway A security audit...
...Rails app you can add a middleware that automatically sets the Secure flag to all server-set cookies. The flag is only added for secure requests, so cookies will still...
...origin requests. It defines under which circumstances a cookie should be sent to the server, putting cookies into three different classes: SameSite=None Send the cookie whenever a request is...
...Ruby, and it is tailored to a certain domain. In contrast, a gem usually: serves a single purpose supports several Ruby versions (some of our gems still support Ruby...
...tests in Cucumber with Aruba. Github Actions Github Actions is a free continuous integration service offered by Github. It runs your test suite in the background and reports test results...
...for the given locale. Note that Hyphenopoly is primarily a NodeJS module and targeted at server-side hyphenation, but it can be configured for the client-side as well.
...use to describe nontrivial migrations in Rails / ActiveRecord. Note that the techniques below should serve you well for tables with many thousand rows. Once your database tables grows to millions...
...clients, we want to review all code written before it goes to the staging server. Note: This process is tailored to our specific needs and tools at makandra. While it...
...Rails console does not crash while starting up. Disable eager loading again. Get rails server running Fix all errors until rails server can render a page. Click around a bit...
openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout server.key -out server.crt Explanation req -new Create a new request ... -newkey ... using a new key ...
...Capybara will wait for a short time before raising NoSuchElementError. This is sufficient for basic, server-rendered application. However, as frontends become more complex (more JavaScript, AJAX requests, animations), race...
...font-awesome": "4.7.x", "jquery": "2.2.4", "marked": "0.3.2", "select2": "./vendor/asset-libs/select2", }, "devDependencies": { "webpack-dev-server": "3.x" }, "resolutions": { "jquery": "2.2.4" } } 6. Merge the content of the application.js and application.css to the...
...rake assets:precompile. Remember to remove the folder public/packs afterwards. 11. Configure Capistrano and servers such that all servers share assets 12. Add a binstub for yarn if it's...
...where I had to export records from a local database, transfer it to a server and import it in the server database. 1. export def dump_to_file(list)
...a custom pretty_inspect as well. It's fairly simple to do and can serve as a fallback if pretty-printing is not applicable. This can also be an alternative...
...gems for e.g. the Ruby version 2.6.5 are installed in this directory on our servers (relative to the current app directory) ../shared/bundle/ruby/2.6.0/gems As you can see, the same gems are...
...the patch level of the .ruby-version in the current release directory of all servers of that deployment target to the new version and deploy again. Because on the first...
...is a European marketing association which has introduced a standard how advertising can be served to users in line with the General Data Protection Regulation (GDPR). This standard is called...
...to a rough geographic region of the user", or "vendor X is allowed to serve personalized advertising based on user behavior", or "vendor X is allowed to use user data...
...received in response to a POST (or PUT/DELETE), the client should presume that the server has received the data and should issue a new GET request to the given URI...
## Development Describe how to get started with the project. Document employed 3rd party services and how to use them, how to start a development server – just about
...boxes are usually built by observing changes in a text field, and querying the server via AJAX for search results or suggestions when the field has changed. A common problem...
...field for changes every 0.75 seconds or longer. It will still fail when the server is busy or on flaky connections. A cleaner solution would be to check whether a...
You can choose not to care. Since e.g. making JSON requests for HTML services is not supported use of your page, you don't have to support them with...
...Not found error, which is slightly less correct than a 406, but will serve your purpose. Option: Check the format in your actions You can write something like this in...
...Gemfile, make sure to exclude these, if they should not be deployed to the servers. The gems of these groups might not be loaded by rails, however, the deployment process...
...will take longer as the gems will be downloaded and installed to the server. e.g. to exclude the groups cucumber and deploy, add the following to config/deploy/production.rb and config/deploy/staging.rb respectively...
...logs all system calls performed by a process. To do this, start your rails server using something like DISABLE_SPRING=1 strace -e trace=file -f bin/rails s
...allow scientific notation like "1e3"). Non-technical users will be confused by this. Your server needs to understand that syntax. If it converts only digits (e.g. to_i in Ruby...
...cause Webpacker (the Rails/Webpack integration) to compile your assets. When you run a dev server While development it is recommended to boot a webpack dev server using bin/webpack-dev-server.
...server compiles once when booted. When you access your page on localhost before the initial compilation, the page may load without assets. The dev server will detect any changes to...
...a state transition while updating the record. To process a form with multiple buttons, your server-side code will need to know which button was pressed. To do so you...
...the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.35 MySQL Community Server (GPL) Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and...