Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Generating with --skip-prototype doesn't remove protoype from index.html

#3814

When generating with rails --skip-prototype prototype is removed from public/javascripts but the default index.html still depends on prototype.

Reported by Max Hawkins · January 30th, 2010 @ 12:34 AM

State: wontfix
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. José Valim
    José Valim
    • State changed from new to open
    • Assigned user set to José Valim
    • Milestone cleared.

    Please provide a patch. :)

    February 3rd, 2010 @ 10:12 AM

  2. PacoGuzman
    PacoGuzman

    Maybe we can use google ajax api, isn't it?

    I wrote a patch using google ajax api, maybe the code added to the generator could be better. Let me know in that case

    February 6th, 2010 @ 04:46 PM

  3. José Valim
    José Valim
    • State changed from open to wontfix

    No, we cannot use Google Ajax API. We should not assume ppl are online. :)

    Actually, I think it's ok for index.html to contain prototype files. If you give --skip-prototype, the index page is not going to work anyway, with or without prototype headers and you are just going to trash the file next.

    February 6th, 2010 @ 04:51 PM

  4. Max Hawkins
    Max Hawkins

    I've always hated having to delete index.html. What do you think of putting it into the builtin Rails::InfoController?

    Then all people would need to is change their default route (which they're going to do anyway.)

    February 6th, 2010 @ 08:57 PM

  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM