If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...
How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea.
Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...
I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...
If you have a text that is edited by WSYIWYG-Editor but want some length checking nevertheless, you need to...
If you have a FooController and also have a layout app/views/layouts/foo.html, Rails will use this without being told so.
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...
A list of FontAwesome icons in the form of copyable Unicode characters or HTML entities. You might prefer to use...
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
CSS3 comes with new unit rem. It works like em but it is always relative to the element instead of...
When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...
For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.
This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...