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.
Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...
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.
Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...
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...
I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...
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...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
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...