Hello, I had a few questions I was hoping someone could shed some light
I am in the process of converting a small app over to use rest, however
I noticed a few oddities that I was unsure of. Currently my app is just
a small store, and I keep all my controllers in /admin/ for the admin
functions. When moving to rest, I was trying to understand the proper
way to use map.resources. Currently for example I have the products
controller in the /admin/ mapped as follows:
:path_prefix => ‘/admin’,
:controller => ‘admin/products’
However, after thinking about this, I could see this being an issue when
it comes to using products with the non-admin controllers (ex. The
actual store), where I would need to map products again. Any solution
The second question is, I realized that scaffold_resource has a few
bugs, which I believe a patch has been submitted. When using
scaffold_resource â€˜admin/Productâ€™ for example, I noticed it creates a
model in app/model/admin/ rather then how the â€œregularâ€ scaffold creates
it in app/model/. Is this correct? I just want to make sure I am
redoing my app correctly before I go any further; I was keeping all the
models in the models directory not in any subdirectories after that.
Please let me know if I need to clarify anything.
Thank you for you help!