Hmm, so I got part of this. If I add this to config/routes.rb:
devise_scope :refinery_user do
get 'community', :to => 'discussion#show', :as => :community_show
post 'community', :to => 'discussion#show', :as => :community_post
get 'discussion/show', :to => 'discussion#show', :as => :discussion_show
post 'discussion/show', :to => 'discussion#show', :as => :discussion_post
get 'join-the-fight', :to => 'refinery/users#new'
get 'profile', :to => 'refinery/users#show'
put 'profile', :to => 'refinery/users#update'
end
mount Refinery::Core::Engine, at: Refinery::Core.mounted_path
I have, in Refinery CMS, created a page called "community". Now if I go to the url "/community", and if I am logged in, then I end up seeing the discussions page, which is the behavior I want. However, if I am not logged in, then I asked to log in.
But if I am not logged in, I just want to see the "/community" page, which should be controlled from the RefineryCMS admin. What do I need to add to routes.rb to make that happen?