General Question

VoodooLogic's avatar

How do you remove a plugin in a Ruby on Rails application and scaffold?

Asked by VoodooLogic (729points) December 3rd, 2009

I tried to download tinymce-plus for my web application. After watching the install for 10 minutes it became apparent that a horrible loop was creating subdirectories of itself:
./pull_request/pull_request/pull_request/pull_request/pull_request/pull_request/pull_request/pull_request/pull_request/pull_request/search

I hit ctrl+c to kill it. Once I restarted my webrick (script/server) it no longer worked.

I believe that the plugin is to blame, but I don’t know how to get rid of it in rails just yet. Did some googling and no real solutions came up. Hope someone can help.

The actual error was
~/George_Ortho_Society/vendor/rails/activesupport/lib/active_support/dependencies.rb:428:in `load_missing_constant’: Expected /home/oldbones/George_Ortho_Society/app/helpers/lfp_contacts_helper.rb to define LfpContactsHelper (LoadError)
from /home/oldbones/George_Ortho_Society/vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in `const_missing’

This error suggests that my scaffold broke my rails server, but doing script/destroy scaffold lfp_contact doesn’t destroy anything.

Hope fully someone can help.

Observing members: 0 Composing members: 0

1 Answer

VoodooLogic's avatar

answered my own question I think.

script/generate scaffold lfp_contact didn’t load the helpers with the right case sensitivity. change the helper method and was able to run script/server. Hopefully I will be able to remove the scaffold now as well.

This time I will keep all my cases lowercase. and I won’t use underscores in my naming conventions.

^_^

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther