Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:56:15+00:00 2026-06-18T07:56:15+00:00

First, the facts: When I navigate to localhost:3000/engage I get the following error: ActionController::RoutingError

  • 0

First, the facts:

When I navigate to localhost:3000/engage I get the following error:

ActionController::RoutingError at /
No route matches {:controller=>"engage/home"}

Error image

Here’s my routes.rb file:

Kt::Application.routes.draw do

  #resources :authentications


  resources :paths


  mount Engage::Engine => '/engage', :as => 'engage'

  resources :comments do
    member {post :forresource}
  end


  resources :resources do
      member { post :vote }
      collection {get :search}
    end

  devise_for :users

  resources :userResourceView
  resources :learningPaths
  get "home/index"
  devise_scope :user do
    get "/login" => "devise/sessions#new"

  end
  devise_for :user, :path => '', :path_names => {:sign_up => "register" }

  match '/user_profile', :to =>'users#index'
  get 'tags/:tag', to: 'resources#index', as: :tag

  match '/auth/:provider/callback' => 'authentications#create'
  match '/auth/:provider/failure', :to => 'authentications#failure'
  #match '/auth/:provider/callback?error_reason...', :to => 'profiles#failure'

  match '/resources', to: 'resources#create', :via => :post
  match 'contact' => 'contact#new', :as => 'contact', :via => :get
  match 'contact' => 'contact#create', :as => 'contact', :via => :post
  match '/forums' => 'forums#index'

  root to: 'home#index', :as => :home

When I run rake routes I get the following:

155-99-191-20:KnowledgeThief dainewinters$ rake routes
                   paths GET    /paths(.:format)                     paths#index
                         POST   /paths(.:format)                     paths#create
                new_path GET    /paths/new(.:format)                 paths#new
               edit_path GET    /paths/:id/edit(.:format)            paths#edit
                    path GET    /paths/:id(.:format)                 paths#show
                         PUT    /paths/:id(.:format)                 paths#update
                         DELETE /paths/:id(.:format)                 paths#destroy
                  engage        /engage                              Engage::Engine
     forresource_comment POST   /comments/:id/forresource(.:format)  comments#forresource
                comments GET    /comments(.:format)                  comments#index
                         POST   /comments(.:format)                  comments#create
             new_comment GET    /comments/new(.:format)              comments#new
            edit_comment GET    /comments/:id/edit(.:format)         comments#edit
                 comment GET    /comments/:id(.:format)              comments#show
                         PUT    /comments/:id(.:format)              comments#update
                         DELETE /comments/:id(.:format)              comments#destroy
           vote_resource POST   /resources/:id/vote(.:format)        resources#vote
        search_resources GET    /resources/search(.:format)          resources#search
               resources GET    /resources(.:format)                 resources#index
                         POST   /resources(.:format)                 resources#create
            new_resource GET    /resources/new(.:format)             resources#new
           edit_resource GET    /resources/:id/edit(.:format)        resources#edit
                resource GET    /resources/:id(.:format)             resources#show
                         PUT    /resources/:id(.:format)             resources#update
                         DELETE /resources/:id(.:format)             resources#destroy
        new_user_session GET    /users/sign_in(.:format)             devise/sessions#new
            user_session POST   /users/sign_in(.:format)             devise/sessions#create
    destroy_user_session DELETE /users/sign_out(.:format)            devise/sessions#destroy
           user_password POST   /users/password(.:format)            devise/passwords#create
       new_user_password GET    /users/password/new(.:format)        devise/passwords#new
      edit_user_password GET    /users/password/edit(.:format)       devise/passwords#edit
                         PUT    /users/password(.:format)            devise/passwords#update
cancel_user_registration GET    /users/cancel(.:format)              devise/registrations#cancel
       user_registration POST   /users(.:format)                     devise/registrations#create
   new_user_registration GET    /users/sign_up(.:format)             devise/registrations#new
  edit_user_registration GET    /users/edit(.:format)                devise/registrations#edit
                         PUT    /users(.:format)                     devise/registrations#update
                         DELETE /users(.:format)                     devise/registrations#destroy
  userResourceView_index GET    /userResourceView(.:format)          userResourceView#index
                         POST   /userResourceView(.:format)          userResourceView#create
    new_userResourceView GET    /userResourceView/new(.:format)      userResourceView#new
   edit_userResourceView GET    /userResourceView/:id/edit(.:format) userResourceView#edit
        userResourceView GET    /userResourceView/:id(.:format)      userResourceView#show
                         PUT    /userResourceView/:id(.:format)      userResourceView#update
                         DELETE /userResourceView/:id(.:format)      userResourceView#destroy
           learningPaths GET    /learningPaths(.:format)             learningPaths#index
                         POST   /learningPaths(.:format)             learningPaths#create
        new_learningPath GET    /learningPaths/new(.:format)         learningPaths#new
       edit_learningPath GET    /learningPaths/:id/edit(.:format)    learningPaths#edit
            learningPath GET    /learningPaths/:id(.:format)         learningPaths#show
                         PUT    /learningPaths/:id(.:format)         learningPaths#update
                         DELETE /learningPaths/:id(.:format)         learningPaths#destroy
              home_index GET    /home/index(.:format)                home#index
                   login GET    /login(.:format)                     devise/sessions#new
        new_user_session GET    /sign_in(.:format)                   devise/sessions#new
                         POST   /sign_in(.:format)                   devise/sessions#create
    destroy_user_session DELETE /sign_out(.:format)                  devise/sessions#destroy
                         POST   /password(.:format)                  devise/passwords#create
                         GET    /password/new(.:format)              devise/passwords#new
                         GET    /password/edit(.:format)             devise/passwords#edit
                         PUT    /password(.:format)                  devise/passwords#update
                         GET    /cancel(.:format)                    devise/registrations#cancel
                         POST   /                                    devise/registrations#create
                         GET    /register(.:format)                  devise/registrations#new
                         GET    /edit(.:format)                      devise/registrations#edit
                         PUT    /                                    devise/registrations#update
                         DELETE /                                    devise/registrations#destroy
            user_profile        /user_profile(.:format)              users#index
                     tag GET    /tags/:tag(.:format)                 resources#index
                                /auth/:provider/callback(.:format)   authentications#create
                                /auth/:provider/failure(.:format)    authentications#failure
                         POST   /resources(.:format)                 resources#create
                 contact GET    /contact(.:format)                   contact#new
                 contact POST   /contact(.:format)                   contact#create
                  forums        /forums(.:format)                    forums#index
                    home        /                                    home#index

Routes for Engage::Engine:
                       root        /                                                 engage/topics#index
             topic_comments POST   /topics/:topic_id/comments(.:format)              engage/comments#create
          new_topic_comment GET    /topics/:topic_id/comments/new(.:format)          engage/comments#new
              topic_comment DELETE /topics/:topic_id/comments/:id(.:format)          engage/comments#destroy
                 topic_vote GET    /topics/:topic_id/vote(.:format)                  engage/votes#create
                            POST   /topics/:topic_id/vote(.:format)                  engage/votes#create
                            DELETE /topics/:topic_id/vote(.:format)                  engage/votes#destroy
unsubscribe_topic_following GET    /topics/:topic_id/following/unsubscribe(.:format) engage/followings#destroy
            topic_following GET    /topics/:topic_id/following(.:format)             engage/followings#create
                            POST   /topics/:topic_id/following(.:format)             engage/followings#create
                            DELETE /topics/:topic_id/following(.:format)             engage/followings#destroy
                     topics GET    /topics(.:format)                                 engage/topics#index
                            POST   /topics(.:format)                                 engage/topics#create
                  new_topic GET    /topics/new(.:format)                             engage/topics#new
                 edit_topic GET    /topics/:id/edit(.:format)                        engage/topics#edit
                      topic GET    /topics/:id(.:format)                             engage/topics#show
                            PUT    /topics/:id(.:format)                             engage/topics#update
                            DELETE /topics/:id(.:format)                             engage/topics#destroy
        set_intended_action POST   /set_intended_action(.:format)                    engage/application#set_intended_action
          user_user_profile PUT    /users/:user_id/user_profile(.:format)            engage/user_profiles#update
                      users GET    /users(.:format)                                  engage/users#index

Also, the error mentions app/views/shared/_header.html.erb. Here is that file:

<div id="header">

    <div id="logoText">

        <%= link_to "Knowledge Thief", url_for(:action=>"index", :controller=>"home") %> 
    </div>

    <div class="signin">

    <a href="#">

        <div class="notifications unread">

            3

        </div>

    </a>

       <% unless current_user.nil? %>
           <%= link_to "#{current_user.email}", url_for(:action=>"user") %>
       <% else %>
           <%= link_to "Sign In", url_for(current_user) %>
       <% end %>
        <%= link_to image_tag("downArrow.png", :style => "height:5px;margin-left:3px;vertical-align:middle;"), url_for(current_user) %> 
    </div>


 </div>

Steps I’ve taken thus far (will be updating):

  1. Made sure to bundle install
  2. Ran rake db:reset
  3. Ran rake db:migrate
  4. Asked my team what might have happened between two days ago and now. I’ll be looking through the git log and such.

Now, I can see that /engage is routed to the engage, but where is this /home coming from? Shouldn’t /engage just go to engage/topics#index?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:56:16+00:00Added an answer on June 18, 2026 at 7:56 am

    Do you have the home controller setup in your main application? The reason lies in the _header.html.erb file where you are using the link to index action of home controller.

    I guess you are using the main application’s layout/template to render the engine’s view. And the _header.html.erb is also part of the template that is rendering the engine’s view.

    The mountable Engines in rails work in a way that if you want to access the route of main application’s controller/action you need to call in on main_app. So you can change the link_to line to look something like:

    <%= link_to "Knowledge Thief", main_app.home_path %> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay,...first the facts. I'm working on an ASP.Net project which validates it's users across
I have the following navigation rules defined in faces-config.xml. I am able to navigate
Few facts first: 1. I can only use ActionScript 2. 2. All files are
I know about that we can add facts dynamic at run time, mean fact1(+First,+Second).
The Facts I have the following datastructure consisting of a table and a list
Here is the facts first. In the game of bridge there are 4 players
First of all, I would like to state the facts I know about 'inline',
First of the bat: I am aware of the fact, that thsi question was
First of all, this isn't for a keylogger, it's for an input in a
first take a look on this picture from localScope app : i have 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.