Sunday, January 12, 2014

How to send push notification to an Android device

Wednesday, October 9, 2013

Sorting ruby array based on one condition

Example

1.9.2p320 :013 > ["Carter's", "Gerber", "Petit Bateau (as pictured)"].sort_by { |word| word.include?('(as pictured)') ? 0 : 1}

 => ["Petit Bateau (as pictured)", "Gerber", "Carter's"] 


Friday, July 19, 2013

couldn't find file 'jquery-ui'

 Sprockets::FileNotFound in Active_admin/devise/sessions#new

Showing .rvm/gems/ruby-1.9.2-p320/gems/activeadmin-0.6.0/app/views/layouts/active_admin_logged_out.html.erb where line #12 raised: 


Solution:

Change gem "jquery-rails"

to 

gem "jquery-rails", "2.3.0"


--
Regards,
Pavan