Tuesday, October 30, 2012

[Rails] Re: What to use Cofeescript or Jquery ?

fahim patel wrote in post #1082003:
> Hi all,
>
> I read about Cofee Script.But i get confused .
>
> Rails Community tells to use Cofee Script.
> Q 1. Can one tell me Advantage of Cofeescript.
> Q 2. I wish to use Ajax but should i use Jquery and CofeeScript.

1. CoffeeScript is just a language that gets "compiled" into JavaScript,
nothing more.
2. You can use jQuery/AJAX with or without CoffeeScript.

Use of CoffeeScript is completely optional. If you like the syntax and
features of CoffeeScript then use CoffeeScript, if not then use
JavaScript. The user's browser will only ever see JavaScript, given
browsers don't know what CoffeeScript is.

--
Posted via http://www.ruby-forum.com/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate