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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:46:13+00:00 2026-06-11T03:46:13+00:00

i am stuck with a problem with my ruby on rails. KINDLY help me

  • 0

i am stuck with a problem with my ruby on rails.KINDLY help me clear the problem and please provide with a good concept of it also.

Scenario :

uptil now everything was going fine till today.as per a requirement of the application i am supposed to add some static pages to an existing ROR application.basically the application is developed and is working fine and i need to add some static pages to it.i had put some static pages in the public folder and evrything was going so for smoothly.bt at a point in the application , i.e the index page of the application there is a login for the application ( not for the static pages ) and i had put that login in one of the div of those static pages (views/users/index.erb) had copy pasted the code from index.html to index.erb.so the moment i put up the address the login page is delivered and the site navigation works too.but when i click home (page of the public folder is shown up and the code of the application’s login doesnt work.) i want it to show up with index.erb that’s in the views folder.

i want to redirect somehow to the page in the views (views/users/index.erb) .. tried href etc cudnt work.

hope i could put the problem in a good way for a good understanding of the problem.
and i am using rubymine editor

P.S I am new to ROR .. total new.Had .NET as my domain.so please provide me with some basic tutorial links where i can systematically understand MVC and ROR.Googling dint help 🙁

waiting for your answers 🙂

  • 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-11T03:46:15+00:00Added an answer on June 11, 2026 at 3:46 am

    RoR takes a little bit of work and understanding to grasp, mostly because there is so much too it; from “code” to “installation/configuration” to “deploy”.

    Sounds like you need to look up and understand “Routing” for Static Pages.

    You are quite right, the default location will be “public” with the index.html page inside there. Leave that as such; as if your “Routing” is working correctly, then views/users/index.erb will show up.

    Just to give you some general direction;
    Add your configuration in config/routes.rb

    Then use the root to: command.

    My configuration: (this links to app/views/static_pages/home.html.erb)

    root to: "static_pages#home"
    
    get "static_pages/home"
    

    That works perfectly.
    You might also want to check in the “logs” folder for possible errors.

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

Sidebar

Related Questions

am a newbie in ruby on rails and am stuck with a simple problem
I’m very new in ruby on rails. I’m stuck with a problem. I have
I am new to Stack Overflow and Ruby on Rails. My problem is, when
I'm stuck with a problem and ask for your help. It's about navigation within
I'm stuck with a problem and hope stackoverfolw community can help me. I want
I'm stuck with this problem. cat ~/.rvm/gems/ruby-1.8.7-p249/gems/nokogiri-1.4.1/ext/nokogiri/mkmf.log Gives this errors (clipped) conftest.c:3: error: 'xmlParseDoc'
I'm beginner at Rails, and im actually stuck with apparently a beginner problem. I
I'm newvbie in ruby on rails.. I'm having problem with gsub.. I everytime I
I stuck with problem of mail application , i am developing a website for
im stuck with a problem im basically trying to create a function where I

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.