A Rails Developer’s impression of CoffeeScript – Part 2

We had a look at the basics of CoffeeScript in the previous post. In this tutorial, we’ll see how it is supported in Rails and how can we use it. Ruby CoffeeScript is a ruby bridge to the CoffeeScript compiler. The coffee-script library will automatically choose the best JavaScript engine for our platform. The available engines are V8, Node.js, and JavaScriptCore. To use CoffeeScript with Rails 3.0.x We can use either of the two gems available: – Barista – gem that provides CoffeeScript support for Rails and Rack apps – BistroCar – another gem that serves up CoffeeScript from within our Rails application The latest versions of…

Upgrading Restful Authentication Plugin for Rails 3

Here at Vinsol, we love to be on cutting edge of Ruby on Rails. When I tried to use restful authentication generator plugin for Rails 3 app, I got ‘Could not find generator authenticated’ error. Generator system in Rails3 is now replaced with Thor which is a scripting framework that replaces rake and sake. Rails 2.x.x finds generators in generators/ or rails_generators/ directory of a gem or a plugin, but the new Thor based system looks for lib/generators/ or lib/rails_generators/ directory. I forked the original restful-authentication plugin and did the necessary changes to make it compatible with Rails 3.0.0.beta3. Updated code is available at http://github.com/Satish/restful-authentication and the…