John Merlino
2011-Feb-21  22:59 UTC
How to access controller located as part of another application in plugins directory
Hey all,
I installed blogkit as a rails plugin. It installed in the vendor
directory as an entire application. called blog_kit. This application
has a controller called blog_posts_controller. However, when I route to
blog_posts in my application:
   resources :blog_posts do
       resources :blog_comments
       resources :blog_images
       collection do
           get :drafts
       end
       member do
           get :tag
       end
   end
It gives uninitialized constant BlogPostsController, because it doesn''t
know where to find the controller.
Any idea how to get it to recognize the controller in vendor folder?
Thanks for response.
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.