...over at http://getfirebug.com/firebuglite#Stable. It usually loads the JavaScript code from a remote server but you can also download it to have it run locally. If adding the bookmarklet...
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...
...human-readable way. (image from the Postgres manual) Open up pgAdmin, connect to your server Pick a database from the left pane Click the "SQL" icon in the toolbar, or...
...working with Ruby 1.8.6 was RubyGems 1.4.2. You get still download it from their servers and install RubyGems...
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...
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
Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...
...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...
...direct root login on the source or target system. Command ssh -A -t $SOURCE_SERVER \ 'sudo -E rsync -avPhn --rsync-path "sudo rsync" \ /var/lib/foo/ \ $USER@$TARGET_SERVER:/var/lib/bar/' Explanation
...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...
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...
...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. Goals Be able to write a simple Rails application. Understand how Rails talks to the...
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...