9 Sep 2012 13:15
Re: Abstracting permissions with Yesod
/admin AdminR:
/product/#ProductId AdminProductR GET POST
...
So if I have:
/admin AdminR:
/ AdminRootR GET
/categories AdminCategoriesR GET
and the handlers are specified as:
getAdminRootR :: Handler RepHtml
getAdminRootR = do
..
getAdminCategoriesR :: Handler RepHtml
getAdminCategoriesR = do
..
what more is needed to create links?
Currently I use <a href= <at> {AdminRootR}> but that results in
Handler/Admin.hs:14:22:
Not in scope: data constructor `AdminRootR'
Arthur
RSS Feed