add demo: plugin with Rails - API solution