I am creating rails application and I separated the application into two engines. Application uses Devise gem for user registration and authorization. Devise gem is connected in the root app and admin side is lying inside one of the engines. But admin side layout is still inside the root application. If I use this code <%= link_to edit_user_registration_path do %> in the admin layout it is showing me the following exception:
undefined local variable or method `edit_user_registration_path'
at /app/views/layouts/admin.html.erb
Can someone please help me to solve this problem. What can be the reason for this outcome?