# Should installing a plugin add some files to the lib folder?

**URL:** <https://www.ruby-forum.com/t/should-installing-a-plugin-add-some-files-to-the-lib-folder/152992>\
**Category:** Rails\
**Created:** [November 10, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/should-installing-a-plugin-add-some-files-to-the-lib-folder/152992 "2008-11-10T22:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [November 10, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/should-installing-a-plugin-add-some-files-to-the-lib-folder/152992/1 "2008-11-10T22:42:02Z")

</div>

Hi,

I have recently regenerated some old projects. In those I was using  
restful\_authentication and also now role\_requirement plugins.

In order to get those working I need to have some files in the lib  
folder, authenticated\_system.rb and role\_requirement\_system.rb  
respectively.

Installing the plugins didn’t add those files to the lib folder so I had  
to copy them manually.

But when those files are placed in that folder? When installing the  
plugin, or how? I mean, I guess that should happen automatically…

Thanks

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [November 11, 2008, 4:30am UTC](https://www.ruby-forum.com/t/should-installing-a-plugin-add-some-files-to-the-lib-folder/152992/2 "2008-11-11T04:30:49Z")

</div>

> But when those files are placed in that folder? When installing the  
> plugin, or how? I mean, I guess that should happen automatically…
> 
> Thanks

If I recall correctly, that happens when you generate the authenticated  
user sessions (after the plugin is installed), as in:

ruby script/generate authenticated user sessions --include-activation

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [November 11, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/should-installing-a-plugin-add-some-files-to-the-lib-folder/152992/3 "2008-11-11T23:22:14Z")

</div>

Thank you Ar Chron for the reply.

That explains it I believe.

Cheers
