# Problem with ssl\_requirement

**URL:** <https://discuss.rubyonrails.org/t/problem-with-ssl-requirement/38841>\
**Category:** rubyonrails-talk\
**Created:** [January 30, 2009, 6:26am UTC](https://discuss.rubyonrails.org/t/problem-with-ssl-requirement/38841 "2009-01-30T06:26:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter8](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@Peter8](https://discuss.rubyonrails.org/u/Peter8)\
**Post date:** [January 30, 2009, 6:26am UTC](https://discuss.rubyonrails.org/t/problem-with-ssl-requirement/38841/1 "2009-01-30T06:26:39Z")

</div>

Hello,

I am trying to enable SSL for my rails app. I have installed the ssl\_requirements plugin and added "include SslRequirement" in the application controller. Then I restart the server and access the home page.

Then I am getting this error:

NameError in ProjectsController#index uninitialized constant SslRequirement::UserSystem

I have searched for this error, no luck. I notice that the plugin is correctly installed in the vendors directory. As soon as I remove the line “include SslRequirement”, my site works again.

What am I doing wrong??

Thanks again!

---

<div class="post-metadata">

**Author:** ![NoJ](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@NoJ](https://discuss.rubyonrails.org/u/NoJ)\
**Post date:** [February 1, 2009, 6:18pm UTC](https://discuss.rubyonrails.org/t/problem-with-ssl-requirement/38841/2 "2009-02-01T18:18:04Z")

</div>

Hi Peter,

the reason for this might be that you are using an outdated version of ssl\_requirement, read more at:

[http://blog.janus.cx/archives/270-SOLVED-uninitialized-constant-SslRequirementUserSystem.html](http://blog.janus.cx/archives/270-SOLVED-uninitialized-constant-SslRequirementUserSystem.html)

cheers NoJ

---

<div class="post-metadata">

**Author:** ![NoJ](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@NoJ](https://discuss.rubyonrails.org/u/NoJ)\
**Post date:** [February 1, 2009, 6:28pm UTC](https://discuss.rubyonrails.org/t/problem-with-ssl-requirement/38841/3 "2009-02-01T18:28:34Z")

</div>

Hi Peter,

you might be using an outdated version of the plugin, read more here.

[http://blog.janus.cx/archives/270-SOLVED-uninitialized-constant-SslRequirementUserSystem.html](http://blog.janus.cx/archives/270-SOLVED-uninitialized-constant-SslRequirementUserSystem.html)

Cheers NoJ
