Coffeescript has nothing to do with Javascript libraries like jQuery or Prototype. It's a precompiler for Javascript, i.e. it converts Coffeescript code to Javascript.

Yes, we use Prototype and jQuery together. You just need to put jQuery into compatibility mode and then use jQuery("blahblah") for jQuery code and the usual $ for Prototype. Be on the lookout for badly written jQuery plugins though (the ones that don't scope their code).

On 19 Jul 2011, at 17:15, gezope wrote:

CoffeScript is standard from Rails 3.1 so it will be the best practice
for sure.
http://jashkenas.github.com/coffee-script/
Give it a try, bests:
gezope

On Jul 18, 12:59 am, Alexey Petrushin <[email protected]> wrote:
So, does anyone use PrototypeJS with jQuery?




Best regards

Peter De Berdt

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to