refinery cms integration devise helper
refinerycms integration into an app which has contains a devise as user
authentication system is done, but I encounter a problem.
I mount the refinery engine in my routes.rb: mount Refinery::Core::Engine,
:at => '/blogs'
My application has header with new_user_session_path and
new_user_registration_path or destroy_user_session_path for all the pages,
also for the refinery pages. I got an undefined local variable or method
"new_user_session_path" for #<#<Class:0x007f9a686c8388>:0x007f9a686d29f0>
error when open refinery pageshttp://localhost:3000/blogs.
After find some discussion in google groups, I follow the suggestion add
main_app prefix in devise path, it works! I can open the refinery
homepage. but a new issue comes out when I open
http://localhost:3000/blogs/refinery: ``` NoMethodError in
Refinery::Admin::DashboardController#index
undefined method `signup_path' for #
```
I have no idea how to handle this, any suggestion will be appreciated!
PS: I had followed the instruction in with-an-existing-rails-31-devise-app
and added refinery_patch .rb restrict_refinery_to_refinery_users.rb into
lib/refinery and then loaded it in application.rb. it says "it will just
consist in telling refinery to use your devise helpers" but not working!
No comments:
Post a Comment