Hi Thomas,
thank you for your reply.
I read the guides, but probably I'm missing something.
I can explain better what I'm trying to do.
The general question is how to create a page in alchemy that includes the view of one action from a main app controller.
In this case I made the login page with devise in my application.
I want to insert the login form inside an alchemy page (in this way I can use the alchemy backend to add other elements to the page and allow the user to change the content and I have the page in the page tree)
These are my attempts:
First I created a login page and the corresponding layout.
1. Inside the layout I copied the code of my login form, but I got this error: undefined local variable or method `resource' for #<#<Class:0x007f8da348df40>:0x007f8da93a9268>
2. I think I had to use the SessionsController to initialize that variable, so I set the controller and the action in the pages_layouts.yml (following
this guide) to use my SessionsController, but I got this error: Rendering 404: No route matches {:action=>"new", :controller=>"Users::SessionsController", :urlname=>"login"} in the log
3. I tried to use the same main layout file (application) that I use for alchemy to render the form, but then I got the error: undefined local variable or method `current_alchemy_site' for #<#<Class:0x007f10db1da298>:0x007f10db1d95a0>
I included the Alchemy::ControllerActions and everything worked.
But this is not what I want, in this way I don't have a page in alchemy, I simply use the same layout of the website.
I hope this makes more clear my goal.
Thanks
Antonio