Wrap parameters in Rails
ActionController::ParamsWrapper
in Rails is responsible for wrapping the parameters hash into a nested hash.
How to add helper in mustache
In my previous post I gave an brief overview about mustache and how we can render templates with it.
Binding mouse events to disabled input elements
Do you know, you can’t bind mouse events to a input element once it is disabled?
Send POST data without a HTML form
Recently while working on one of the projects I encountered a situation where I had to post some nested-data to a controller method and this data wasn’t associated with any model hence rails fields_for
was of no help.
Template rendering with mustache
In some widgets rich websites we are often faced with a situation where we need to update all the widgets on a page based on change of a particular attribute.