-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't install on rails 5.1 #76
Comments
Can you add some information about your insights for other users finding this issue? |
Sorry I closed it by mistake at the end I'm still fighting I solve a couple of errors and got everything installed but not working. What I did was first install and configure devise by itself then add milia and run the installer skipping devise configuration and I had to change in and added But still isn't working infact when I try to create a user with a tenant it says: |
@giovapanasiti Hi!
Here's the readme https://github.com/jekuno/milia#setup-base-models |
@8geonirt I did it |
What exactly are you doing in order to create a user with a tenant? |
@jekuno @giovapanasiti I figured out what is going on, the |
@8geonirt Thanks for investigating it. Would you be so kind to test whether switching to branch issue#76 (https://github.com/jekuno/milia/tree/issue%2376) fixes your issue? Add to your Gemfile |
fwiw, that branch fixed things on rails 5.1 for me. It'd be great if that and 4c36b46 were released so it works out of the box w/ 5.1. Thanks! |
@jekuno I get the same error for rails 5.1.14 and ruby ruby 2.4.0p0 using "gem 'milia', github: 'jekuno/milia', branch: 'issue#76'". Output:
|
project details -> rails 5.1.4 and ruby 2.4.1
Thanks |
adding this before_action :authenticate_tenant! manually in application_controller should do the work. |
i added the before_action :authenticate_tenant! in the application_controller, then run rails g milia:install. still have the error. also i changed the gemfile to gem 'milia', github: 'jekuno/milia', branch: 'issue#76'. still nothing changed |
Environment: Gem: Application Controller: end` Command: Error:
Things I tried: `Running via Spring preloader in process 9291 milia installation complete ` Hope this helps someone else. |
@mmaberry-yottaa thanks! But I would like to add, when running rails g milia:install --org_email='[email protected]' again, don't type Y when it ask you to overwrite devise_permitted_paramters.rb type N instead, to not overwrite the before_action you've edited. |
@mmaberry-yottaa, thanks! it works on my case. |
Thank you @ajithkgatty |
This worked for me |
this is the error i get:
The text was updated successfully, but these errors were encountered: