Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring controller.rb inside /vendor/bundle #61

Open
Bastes opened this issue Aug 13, 2012 · 3 comments
Open

Ignoring controller.rb inside /vendor/bundle #61

Bastes opened this issue Aug 13, 2012 · 3 comments

Comments

@Bastes
Copy link

Bastes commented Aug 13, 2012

I've bumped into a strange problem when bundling my gems inside my project's /vendor/bundle directory, it looks like stasis is attempting (and failing) at executing controller.rb files inside the stasis gem directory.

Maybe stasis should ignore all controller.rb files found under this directory ?

@Bastes
Copy link
Author

Bastes commented Sep 11, 2012

This problem is getting really annoying ; could someone at least point me to where the controllers are searched and loaded so that I can try and fix the problem ?

@kammerer
Copy link

Hmm, for me it works without any errors. Can you be more specifiic?
Does adding ignore /\/vendor/ to controller.rb help?

@Bastes
Copy link
Author

Bastes commented Sep 15, 2012

Yep, from what I've read in stasis's code the controllers are first rounded up then executed, si whatever's in the main controller doesn't do much.

For now I've worked around it by creating a subdirectory under my main project so the vendor isn't a subdirectory when I'm calling stasis, and I'm working on a way to exclude /vendor altogether from looked-up directories when it comes to templates and controllers. I'll send a pull request when I'm done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants