...working with Ruby 1.8.6 was RubyGems 1.4.2. You get still download it from their servers and install RubyGems...
We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common use case of CarrierWave's DSL is to "process" the...
Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
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...
better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...
...with something more expressive afterwards. Traim outputs a Rack application which you can either serve standalone or mount into your Rails app...
Quick reference for passing data from Rails to JavaScript via Unpoly compilers. Haml Attribute Syntax # Ising hash rockets and string...
...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...
Erfülle die Aufgaben Zeige deinem Mentor in einer Live-Demo was du umgesetzt hast. Wenn du Aufgabe 4 betrachtest...
...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...
Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...
Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...
How to retrieve connection information from memcached. printf "stats\nquit\n" | nc 127.0.0.1 $MEMCACHED_PORT | grep connection
...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...
...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...
...how to add Stylesheets how to add images how to use the Webpack dev server One more thing about Yarn / npm There is one significant difference between JavaScript package managers...
...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...
Rails is our web framework. In this lesson you build your first two Rails applications: a small store by following...
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...
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...
If you have a very large datadir in MariaDB and you want to transfer the data to another host (e.g...
To connect to the serial console of an EC2 instance, you can use the aws cli. Add your public ssh...
...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...