This is that api I propose. If it is agreed upon by core team then a patch can easily be created.
# create a demo app with prototype javascript # in this way current behavior is not changed > rails init demo # create a demo app with latest stable jquery # http://github.com/rails/jquery-ujs should have a jquery-versions.txt file which lists all the stable releases of jquery. That file will be referred # on runtime and the latest stable version will be found which would be 1.4.2 as of this writing > rails init demo -j=jquery # create a demo app with jquery version 1.4.1 > rails init demo -j=jquery:1.4.1 # create a demo app with mootools version 1.2.4 > rails init demo -j=mootools:1.2.4 Once this kind of api is in place then I don't care what is the default JavaScript library that ships with rails. Thoughts? On May 27, 11:32 am, Yehuda Katz <[email protected]> wrote: > The idea that 16% of Rails users use jQuery is divorced from reality. > I can devise some experiments to prove that, but I have seen no > evidence in my travels of a huge amount of people using anything else. > I freely agree that people use Protoype, MooTools and Dojo. The number > of people who do so, in my estimation, is quite small. > > Also, to be clear, people who don't write JavaScript at all but just > use the Rails helpers would be unaffected by a change in defaults. I > would consider them N/As rather than "prototype users" > > > > > > On Thursday, May 27, 2010, Jarkko Laine <[email protected]> wrote: > > On 27.5.2010, at 18.11, Yehuda Katz wrote: > > >> At every talk I give at a conference, I ask whether people use jQuery > >> in their Rails apps. In every case, close to 100% of the room raises > >> their hands. > > > In all fairness, I think that's a bit misleading question. I raised my hand > > when you asked it in Frozen Rails, but I would also have raised my hand if > > you'd had asked the same question about Prototype. > > > //jarkko > > > -- > > Jarkko Laine > >http://jlaine.net > >http://dotherightthing.com > >http://odesign.fi > > > Check out my latest book, Unobtrusive Prototype, fresh off the Peepcode > > oven: > >http://peepcode.com/products/unobtrusive-prototype-js > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Core" 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 > > athttp://groups.google.com/group/rubyonrails-core?hl=en. > > -- > Yehuda Katz > Architect | Engine Yard > (ph) 718.877.1325 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en.
