SampleGemController is a project mainly written in RUBY and JAVASCRIPT, it's free.
Demo of a gem containing models, controller and views
== Sample Client and Gem factoring out models, controller and views
The sample client ClientApp uses the gem MyGem to provide models, a controller and views. This shows how you can pull these types of common code into a gem.