...working with Ruby 1.8.6 was RubyGems 1.4.2. You get still download it from their servers and install RubyGems...

en.wikipedia.org

Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server other than server1.example.com. An exception is the HTML...

github.com

better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...

github.com

...with something more expressive afterwards. Traim outputs a Rack application which you can either serve standalone or mount into your Rails app...

unpoly.com

Quick reference for passing data from Rails to JavaScript via Unpoly compilers. Haml Attribute Syntax # Ising hash rockets and string...

nginx.org

...is a non-standard response code that nginx will interpret as "drop connection". Example: server { listen 127.0.0.1; location /api/ { return 444; } } An example use case is reverse-proxying with nginx...

linux.die.net

...need to find out which of your local commits are not on the remote server do this: git cherry -v The -v option prints out the commit messages. Without it...

Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...

Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...

blog.jayfields.com

...styles, and system will fail when passing it invalid arguments: system 'bundle exec rails server', '-p 3000' # fails and returns nil This is equivalent to running a command called "bundle...

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

blog.salsify.com

...to fix the problem of pending AJAX requests dying in the browser when the server ends a test or switches scenarios. We were able to work around this issue in...

...that the embeded video is rendered in the view will fail because your test server doesn't use https Solution Let your links look like //youtu.be/jyElDp98HdI and you will be...

...fine, server side and test side...

In development, we store files using ActiveStorage's disk service. This means that stored files are served by your Rails application, and every request to a file results in (at...

makandra dev
github.com

pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks, page titles, and a working back button that fully degrades...

makandra dev

While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...

gem-session.com

...the file robots.exclude.txt instead. In your Apache Vhost config, rewrite requests for the staging server only: RewriteEngine On RewriteCond %{HTTP_HOST} ^staging\.project\.com$ RewriteRule ^robots\.txt$ /robots.exclude.txt Your robots.exclude.txt...

...looks like this: # This file is returned for /robots.txt on staging servers User-agent: * Disallow: / Important Note: If your setup is incorrect and /robots.txt is not accessible, it means there...

...sends the e-mail that we expect, but it also does stuff on the server that takes some time, eventually redirecting the user to a new page, showing other things...

If the browser is still waiting for further responses from the server (like after following redirects), it is locked -- and the next test using it will fail...

... you probably have a time zone issue. When you get Timecop.travel(Date.parse("2011-11-11 00:00") do Time.current # Thu...

greg.molnar.io

Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...

So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...

It's a great way to mock network requests to an external service without going through the pain of logging network traffic with Wireshark or similar tools...

Ubuntu has a package mysql-sandbox that lets you install multiple MySQL versions into your user home: Install mysql-sandbox...

87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET /monitoring/pings/ HTTP/1.1" 200 814 "-" "Ruby" 87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET...