Colin Law wrote:
> Why do you want to put a controller in the lib folder? That is what the
> controllers folder is for.
>
> 2009/3/27 Alex
You could create a plugin that defines controllers, models, etc so that
you can more easily share code amongst various apps. I saw that idea
yesterday in
I'll have a look at it, thank you very much for your response!
On 27 mar, 20:33, Andrew wrote:
> I've never used them before, but you can look into using Rails Engines
> "The engines plugin enhances Rails’ own plugin framework, making it
> simple to share controllers, helpers, models, public ass
I've never used them before, but you can look into using Rails Engines
"The engines plugin enhances Rails’ own plugin framework, making it
simple to share controllers, helpers, models, public assets, routes
and migrations in plugins."
http://rails-engines.org/introduction
On Mar 27, 4:51 pm, A
Hi all, here is my situation: My company recently adopted RoR for all
its Web Projects. We currently have 3 major projects in development.
I'm searching for a way to share between all our projects everything
that we have in common. Currently I identified a few models,
controllers and libraries tha
Why do you want to put a controller in the lib folder? That is what the
controllers folder is for.
2009/3/27 Alex
>
> Hi everyone, is it possible to add a controller into the lib folder? I
> tried but it doesn't seem to work... Is it because it's not loaded?
>
> Thanks!
>
> >
>
--~--~-~
You could add foo.rb into lib/modues and then where ever you want to
access those methods you would need to include that file.
require 'lib/modules/foo.rb'
include foo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
6 matches
Mail list logo