This project is archived and is in readonly mode.

#3797 ✓stale
Ryan Bigg

Attempting to use engines results in failure

Reported by Ryan Bigg | January 27th, 2010 @ 02:19 PM

As I understand it, this may still be a work in progress. Raising a ticket anyway in case it isn't.

I have an engine located in vendor/plugins/train in an edge application. This train application is a clone of the edge application with application.rb modified so the Application class in it descends from Rails::Engine instead of Rails::Application and I have an init.rb file which requires this config/application.rb file. The reasoning for this last part is that before hand it was complaining of a uninitialized constant Train. config/application.rb loads this constant, so I thought this would be a quick&easy workaround to try and play with engines.

Alas, I get this error "train" is a Railtie/Engine and cannot be installed as plugin".

I do not know where engines are supposed to go apart from vendor/plugins. So what's up with this?

Comments and changes to this ticket

  • Ryan Bigg

    Ryan Bigg January 27th, 2010 @ 02:19 PM

    • Tag changed from engines to 3.0pre, engines
  • Rohit Arondekar

    Rohit Arondekar June 23rd, 2010 @ 02:55 AM

    This is still an issue on Rails master?

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 05:01 PM

    • State changed from “new” to “open”
    • Tag changed from 3.0pre, engines to 30pre, engines
    • Importance changed from “” to “Low”

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 05:01 PM

    • State changed from “open” to “stale”
  • klkk

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>

Tags

Pages