# Undefined method \`env\_secret' for ForestLiana:Module

**URL:** <https://community.forestadmin.com/t/undefined-method-env-secret-for-forestliana-module/2854>\
**Category:** Help me!\
**Created:** [July 8, 2021, 7:45am UTC](https://community.forestadmin.com/t/undefined-method-env-secret-for-forestliana-module/2854 "2021-07-08T07:45:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrax](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/pierrax/32/2599_2.png) [@pierrax](https://community.forestadmin.com/u/pierrax)\
**Post date:** [July 8, 2021, 7:45am UTC](https://community.forestadmin.com/t/undefined-method-env-secret-for-forestliana-module/2854/1 "2021-07-08T07:45:00Z")

</div>

I’m using Rails and Ruby 2.7.2  
Trying to set up FA with :

```javascript
rails g forest_liana:install fb13fdca...fds

```

## Failure Logs

````javascript
/Users/phil/.rvm/gems/ruby-2.7.2/gems/forest_liana-6.6.2/lib/generators/forest_liana/install_generator.rb:11:in `install': undefined method `env_secret' for ForestLiana:Module (NoMethodError)

   3 module ForestLiana
\e[0m 4 class InstallGenerator < Rails::Generators::Base
\e[0m 10 def install
\e[0m❯ 11 \e[1;3m if ForestLiana.env_secret.present?
\e[0m 16 end
\e[0m 18 route "mount ForestLiana::Engine => '/forest'"
\e[0m 20 auth_secret = SecureRandom.urlsafe_base64
\e[0m 22 puts "\\nForest generated a random authentication secret to secure the " +
\e[0m 28 if File.exist? 'config/secrets.yml'
\e[0m 68 end
\e[0m 69 end
\e[0m 70 end
\e[0m```

Thanks
````

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [July 8, 2021, 9:41am UTC](https://community.forestadmin.com/t/undefined-method-env-secret-for-forestliana-module/2854/2 "2021-07-08T09:41:49Z")

</div>

Hello @pierrax and welcome to the Forest community.

Could you try to remove your `config/secrets.yml` file relaunch the command?  
Or just remove the lines concerning forest if you have more things in it.

---

<div class="post-metadata">

**Author:** ![pierrax](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/pierrax/32/2599_2.png) [@pierrax](https://community.forestadmin.com/u/pierrax)\
**Post date:** [July 8, 2021, 2:26pm UTC](https://community.forestadmin.com/t/undefined-method-env-secret-for-forestliana-module/2854/3 "2021-07-08T14:26:04Z")

</div>

Thank you @anon79585656.  
I tried but unfortunately same error.

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [September 13, 2021, 12:50pm UTC](https://community.forestadmin.com/t/undefined-method-env-secret-for-forestliana-module/2854/4 "2021-09-13T12:50:05Z")

</div>

Hello @pierrax

Sorry I missed your answer ☹

Did you succeed in installing your project?  
If not, we released a few upgrades to our Ruby integration this summer, maybe they will fix your issue.

Let me know if you need more information.

Thank you
