...node version that is older than mine. Every time I wanted to run my rails dev server I was asked to check my yarn integrity: error Integrity check failed

+ "systemParams": "linux-x64-64", "modulesFolders": [ "node_modules" ], - "flags": [], + "flags": [ + "checkFiles" + ], "linkedModules": [], "topLevelPatterns": [ "@rails/webpacker@4.x", There were also changes in node_modules/node-sass/vendor/linux-x64-64/binding.node. After I switched to the "correct...

...iconfont-plugin-webpack that automate the font building. If you're still using the Rails asset pipeline, try the half-automatic approach. Webpacker Rails: How to integrate the plugin

...sub directories, make sure to add -r features to the standard Cucumber options. In Rails apps, Cucumber options are likely to be stored in config/cucumber.yml...

Here is how to do it without a server-side component (like a Rails application). Use JavaScript's navigator.language (real browsers and IE11+) and navigator.userLanguage (old IEs).

stackoverflow.blog

...opensource.zalando.com/restful-api-guidelines https://www.merixstudio.com/blog/best-practices-rest-api-development/ https://www.oreilly.com/library/view/rest-api-design/9781449317904/ More topics in our deck: Rails: Rest API post-mortem analysis InfoQ: How to Design a Good API & Why it Matters

We have two redundant auto-failover FreeBSD load balancers for our Ruby on Rails hosting setup that are connected to the Internet backbone with a 10GE interface pipe. All...

...other components are redundant, too. Interested? See http://railscomplete.de

...cleaner will take care of this. See How to set up database_cleaner for Rails with Cucumber and RSpec...

You installed some gems that install a binary (like bundle, rake or rails) with code that only works with modern Rubygems versions You downgraded Rubygems to an older...

github.com

Good reference how to build bootstrap forms with simple_form.

...require 'mathn' call (usually by wrapping Bundler.require) like this: # config/application.rb MathnWorkaround.intercept do Bundler.require(:default, Rails.env) if defined?(Bundler) # If you require "mathn" manually, put it inside this block. end

Obviously, this leads to problems when comparing strings: "Über".downcase == "über" => false In Rails you can use ActiveSupports' multibyte chars to avoid that problem. It gives you a wrapped...

...to your site and still have the serialization of such objects in their session. Rails will then try to rebuild the user's session and raise an error out of...

tableplus.io

...other schema names when working with a (legacy) application's database. Note that for Rails applications, dropping and recreating the database itself is usually fine in development. You can use...

solnic.eu

...simple definition of meta-programming macros like the has_many that you know from Rails. Modularity also lets you organize large models into multiple source files in a way that...

makandra dev
github.com

...be docked to I18n (configured explicitly on plain Ruby, or use .yml files for Rails): "one & two".convert_miscellaneous_characters # => "one and two" "my words".convert_miscellaneous_html_entities...

...You can "fix" this in multiple ways: Update your drivers on your machine with RAILS_ENV=test rake webdrivers:chromedriver:update Ignore the driver update-URL in your VCR configuration...

...and see if VCR complains: WD_CACHE_TIME=1 bundle exec cucumber Note: Newer Rails versions come with the webdrivers gem automatically...

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those strings will get some default encoding, depending on how they...

developer.mozilla.org

...class: 'image-preview' The image_tag will either contain an existing image (rendered by Rails) or be overwritten by Unpoly with an image preview. Testing Here's a Cucumber step...

...using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not add a fingerprint hash to its asset paths by default. This means...

makandra dev
dev.mensfeld.pl

Enumerable#grep_v excludes from the result set. It's similar to Rails' #reject: ['foo', 1, 'bar', {}].grep String # => ['foo', 'bar'] ['foo', 1, 'bar', {}].grep_v String...

...you set both a record's association and that association's foreign key attribute, Rails does not realize you are talking about the same thing. The association change will win...

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information about each part of a request/response cycle.

# or without agent: install-gems-remotely me@my.server.com When you call it from a rails directory, it uploads your Gemfile, Gemfile.lock as well as the gemspecs of all vendored gems...

...encode such strings. You probably know Quoted Printable from e-mail bodies appearing in Rails logs, where =s become =3Ds in URLs, or where long lines are split up and...