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 7897723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:14:26+00:00 2026-06-03T08:14:26+00:00

I have just installed Devise and now I want to make better style for

  • 0

I have just installed Devise and now I want to make better style for Devise. I have added in application.html.rb link to edit Devise user profile, but when I visit this page and then go back for example to index page I have no routes matches error.

HTML generates this link for home/index: http://localhost:3000/assets?controller=devise%2Fhome

but really need to be: http://localhost:3000/home/index

There goes something wrong after visiting Devise user pages.

My navigation:

<ul>
  <li>
  <h2>Izvēlne</h2>
    <ul>
      <li><a class="menu"><%= link_to "Jaunumi" ,:controller=>"home", :action => "index" %></a></li>
      <li><a class="menu"><%= link_to "Par skolu" ,:controller=>"home", :action => "par_skolu" %></a></li>
      <li><a class="menu"><%= link_to "Galerijas" ,:controller=>"home", :action => "galerijas" %></a></li>
      <li><a class="menu"><%= link_to "Skolotāji" ,:controller=>"home", :action => "personals" %></a></li>
      <li><a class="menu"><%= link_to "Kontaktinformācija" ,:controller=>"home", :action => "kontakti" %></a></li>
      <li><a class="menu"><%= link_to "Personāla pieeja" ,:controller=>"home", :action => "pers_pieeja" %></a></li>
    </ul>
  </li>
  <li>
  <h2>Administrācija</h2>
    <ul>
      <li><%= link_to "Lietotāju rediģēšana", edit_user_registration_path %></li>
      <li><%= link_to "Rakstu rediģēšana" ,:controller=>"posts", :action => "index" %></li>
      <li><%= link_to "Galeriju rediģēšana" ,:controller=>"admin", :action => "galeriju_red" %></li>
    </ul>
  </li>
</ul>

routes.rb:

devise_for :users

get "admin/galeriju_red"

resources :posts

get "admin/rakstu_red"

get "home/par_skolu"

get "home/personals"

get "home/kontakti"

get "home/pers_pieeja"

get "home/galerijas"

get "home/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-03T08:14:27+00:00Added an answer on June 3, 2026 at 8:14 am

    The only idea I can think of is changing your routes from:

    get "home/index"
    

    to

    match "/home/index" => "home#index", :via => [:get]
    

    They are equivalent, but match makes path helpers available, so your links in menu view could be like this:

    <%= link_to "Home" main_app.home_index_path %>
    

    Main_app is a built-in Rails helper and it gives access to Rails routes inside Engine.

    If you matched simply /home, path helper would be called home_path.

    I hope this fixes your problem.

    Reference: Routing in Rails

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Posts controller and I have just installed Devise to add some
I have just installed composer in my /usr/bin folder, so when from that folder
I have just installed Java JDK 6u33 in Windows XP. Even though I didn't
I have just installed RVM in my machine and facing problem with rvmrc file,
I have just installed Git For Windows , and created my SSH key using
I have just installed Visual Studio 2008 on a Virtual PC to evaluate it
I have just installed that latest stable release of TortoiseSVN on Windows Server 2003
I have just installed Microsoft Robotics Studio 2008 R2, and I must admit that
I have just installed C# 2008 Express Edition 2008 and started writing code. My
I have just installed Delphi 2010 and got some troubles with idHTTP component. If

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.