Haven't been able to find any workable solutions to this issue. I'm using the monologue gem to add basic blog functionality to my app, however I'd really like to rename the default '/monologue' route as provided by the gem.
The engine's routes packaged in the gem are as follows:
Monologue::Engine.routes.draw do
root to: "posts#index"
get "/page/:page", to: "posts#index", as: "posts_page"
get "/feed" => "posts#feed", as: "feed", defaults: {format: :rss}
get "/tags/:tag" =>"tags#show", as: "tags_page"
namespace :admin, path: "monologue" do
get "/" => "posts#index", as: "" # responds to admin_url and admin_path
get "/page/:page", to: "posts#index", as: "posts_page"
get "logout" => "sessions#destroy"
get "login" => "sessions#new"
resources :sessions
resources :posts
resources :users
get "comments" => "comments#show", as: "comments"
match "/post/preview"=>"posts#preview", :as=>"post_preview", :via => [:put, :post]
end
get "*post_url" => "posts#show", as: "post"
end
In my app's routes.rb, I'm trying to reroute it with a prepend with something like this but it doesn't seem to register with rails.
Monologue::Engine.routes.prepend do
namespace :admin, path: "create" do
.......
end
end