This project is archived and is in readonly mode.
adding "-j" parameter for "rails new" command
Reported by siong1987 | September 11th, 2010 @ 08:29 AM | in 3.1
it seems like there are more and more people using "jquery" as the default javascript library when they start up a new rails app.
for this patch, i removed the usual "--skip-prototype" parameter and substituted it with the "--skip-javascript" parameter. then, i added a new "-j" or "--javascript" parameter. this parameter accepts either "jquery" or "prototype".
btw, the default javascript library now is still "prototype".
Comments and changes to this ticket
-
Mikel Lindsaar September 11th, 2010 @ 08:35 AM
- Milestone set to 3.1
- Assigned user set to Mikel Lindsaar
- Importance changed from to Low
You should post this idea on the rails-core mailing list, get some +1's and verifs.
-
siong1987 September 11th, 2010 @ 08:42 AM
sorry. minor update.
@Mikel: the post was there already: http://groups.google.com/group/rubyonrails-core/browse_thread/threa...
-
Victor Ng October 1st, 2010 @ 09:49 AM
Great effort. I think most Web 2.0 websites today include jQuery as their default library.
-
David Trasbo October 8th, 2010 @ 09:33 AM
- State changed from new to wontfix
The pull request (http://github.com/rails/rails/pull/16) has been closed. Marking this
wontfix
for now. -
siong1987 October 8th, 2010 @ 02:07 PM
David,
The pull request is closed because the core team wants me to get others in the core team to support this ticket. And, hence, I put up this ticket here.
You might have to reopen this ticket so that others can look at this ticket.
-
Santiago Pastorino October 8th, 2010 @ 02:38 PM
- State changed from wontfix to open
-
Santiago Pastorino October 11th, 2010 @ 08:20 PM
- Assigned user changed from Mikel Lindsaar to Santiago Pastorino
-
Santiago Pastorino October 11th, 2010 @ 09:00 PM
siong1987 I'd like to know what is your latest patch related to this and if it's rebased because I know there were one as a pull request. Thank you.
-
siong1987 October 11th, 2010 @ 09:56 PM
The patch(September 13th, 2010 @ 07:56 PM) I last submitted here should be the latest.
The pull request might be a bit too old and it might not have the latest changes I made.
-
Santiago Pastorino October 11th, 2010 @ 10:03 PM
Good siong1987 but one thing you're doing this
+ copy_file "public/javascripts/#{@options[:javascript]}_ujs.js", "public/javascripts/rails.js" + copy_file "public/javascripts/#{@options[:javascript]}_ujs.js", "public/javascripts/rails.js"
twice
-
siong1987 October 11th, 2010 @ 10:18 PM
Oh shit. I totally missed that line. Do you want me to resubmit a new patch again?
-
Repository October 11th, 2010 @ 10:55 PM
- State changed from open to committed
(from [708e09448ba41c45f189c6b1adc989eba8994b20]) -j parameter added to rails new command.
Now you can start your apps with jquery with rails new myapp -j jquery, the default is still prototype
[#5613 state:committed]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/708e09448ba41c45f189c6b1adc989... -
Santiago Pastorino October 12th, 2010 @ 12:07 AM
You're welcome and please keep helping.
This issue was around since the discussion about ujs started.
But this kind of stuff needs a deep discussion, so the patch you did was really helpful to make it easier the discussion. -
Ches Martin December 8th, 2010 @ 08:13 PM
- Tag changed from javascript, jquery, rails3.0.0 to appgenerator, javascript, jquery, rails3.0.0
There's a small problem with this which I've addressed in #6112 -- if that passes review, may want to make sure the ticket is flagged for the same milestone as this one.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 6112 app generator not including script.aculo.us with prototype With the commit accepted in #5613 to add the --javascrip...
- 5613 adding "-j" parameter for "rails new" command [#5613 state:committed]