...the systemd system and service manager. It is backwards compatible to System V and includes the System V services Therefore I prefer to use systemctl. See which services are there...
Create, or edit your ~/.irbrc file to include: require 'irb/ext/eval_history' # was 'irb/ext/save-history' for versions prior to Ruby 3.3 IRB.conf[:SAVE_HISTORY] = 2000 IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history...
...Reasons for this behavior It's probably because of this RFC: Clients SHOULD NOT include a Referer header field in a (non-secure) HTTP request if the referring page was...
The linked content includes a few design patterns implemented with Ruby on Rails. What is the card indented to achieve? You can use the pattern names for code reviews, so...
...design patterns in a wrong way", since design patterns do not replace good code Included Design Patterns: Service, Value object, Presenter, Decorator, Builder, Form object, Policy object, Query object, Observer...
...Here's how to reproduce the issue: Example 1 # bad code (Time.current .. Time.current + 1.hour).include?(Time.current) # Use Range#cover? instead of Range#include? since the former does no typecasting into...
...require model to be set should require place_id to be set #identifier should include the model and tag if the tool has a tag should return the model if...
...a text area with one row. f.text_area(:name, rows: 1, autosize: '') Step 2 Include the autosize library in your project yarn add autosize And make your textarea(s) grow...
...might be mysql_sandbox instead. This will install this version into /~/sandboxes/msb_5_7.21. The folder includes a command to start the MySQL daemon for that sandbox. It listens to a non...
...file name and extension for a given version. Uploader class VideoUploader < CarrierWave::Uploader::Base include DoesCarrierwaveFormatPatches version :mp4 do set_file_specs file_type: 'video/mp4', extension: :mp4, suffix: '1080p'
...format: :mp4, resolution: 1080] end end Trait This trait uses our gem Modularity. Just include the code in your uploader if you don't want to use the gem.
Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...
...element again. This unblocks the entire JavaScript API for the current page. You can include the following module in your test to get a method interact_with_page that does...
...id: 2, title: "How to rock", state: "draft"> ] Let's say you wanted to include deleted articles. Removing the available scope is one way but you might also add another...
Then /^I should get a response with status (\d+)$/ do |status| response.status.should include(status) end Capybara Then /^I should get a response with status (\d+)$/ do |status| page.status_code.should include...
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin support. You can replace Bash with ZSH like following:
...fill in "E-mail" with "foo@bar.com" inside the login frame Note: Spreewald >= 4.1.0 already includes that step
...important as we want to append "mice" and "pandas" only to those arrays that include "cats" in the first place. name topics Alice {dogs,mice,pandas} Bob {llamas}
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601 format ("2021-02-22T20:34:53.686Z")
Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or XPath. If you previously did something like this: field.find(:xpath...
end class Foo prepend FooExtensions # the only change to above: prepend instead of include end Foo.new.bar # => 'Hello in my World' As mentioned, monkey patches are usually a threat to...
...hash or your session data into consideration. The following example demonstrates how you could include params to generate the cache path: class JobsController < ApplicationController caches_action :index, :cache_path => :index_cache_path.to...
...c www.example.com.ca-bundle -s www.example.com-2011 -v The output should look like this and includes the server certificate Amazon Resource Name (ARN) and GUID: arn:aws:iam::322191361670:server-certificate...
.../projects/:id => ProjectsController#show GET /projects/:id/report => Projects::ReportsController#show Hacks to solve this include renaming the report route to something like /projects_report, or defining a new collection action ProjectsController...
...commands, and scope to individual machines or machine roles. Unfortunately Capistrano 3 does not include these commands any more. cap shell Basics First of all, spawn a Capistrano shell (we...
...icon-sprite) no-repeat 0 offset-to-cross-icon You can also have compass include the height and width of the original image, by using +buttons-sprite("blue-button", true...