Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ruby

Best Way To Display Flash Notices In Rails

I'm using notices in Rails and Devise and wondered what's the best way to display them? In … Read more Best Way To Display Flash Notices In Rails

The Mystery Of The Disappearing Checkmarks

If a user clicks a checkbox the below code will fire, but the checkmark will sometimes disappear, t… Read more The Mystery Of The Disappearing Checkmarks

Execjs::programerror: Unexpected Character '#'

I'm trying to deploy to Heroku and I am met with this error. I've done some research and tr… Read more Execjs::programerror: Unexpected Character '#'

How To Use Ruby Code Inside Js.erb?

I'm able to render partial inside a modal using escape_javascript in js.erb file code: $('b… Read more How To Use Ruby Code Inside Js.erb?

Ruby's ||= (or Equals) In Javascript?

I love Ruby's ||= mechanism. If a variable doesn't exist or is nil, then create it and set … Read more Ruby's ||= (or Equals) In Javascript?

Mongodb And Mongomapper

i have a rails app that currently uses activerecord to store and query products. Each product has a… Read more Mongodb And Mongomapper