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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:02:18+00:00 2026-05-29T11:02:18+00:00

I just started learning RoR. This is my /app/trip_controller.rb file class TripController < ApplicationController

  • 0

I just started learning RoR. This is my /app/trip_controller.rb file

class TripController < ApplicationController
 layout 'main'
 def index
 end
  def map
    session[:location] = Location.new(params[:location])
        @map = GMap.new("map_div")
        @map.control_init(:large_map => true, :map_type => true)
        @map.icon_global_init( GIcon.new(:image => "http://www.google.com/
                                      mapfiles/ms/icons/blue-pushpin.png",
        :shadow => "http://www.google.com/mapfiles/shadow50.png",
        :icon_size => GSize.new(32,32),
        :shadow_size => GSize.new(37,32),
        :icon_anchor => GPoint.new(9,32),
        :info_window_anchor => GPoint.new(9,2),
        :info_shadow_anchor => GPoint.new(18,25)),
        "icon_source")
        icon_source = Variable.new("icon_source")
        source = GMarker.new([session[:location].lat,
                            session[:location].long],
        :title => 'Source',
        :info_window => "Start here!",
        :icon => icon_source)
        @map.overlay_init(source)
        @map.center_zoom_init([session[:location].lat,
                         session[:location].long], 12)
        @location = session[:location].location
 end

end

And this is my routes.rb file

Project::Application.routes.draw do
 end

My /app/views folder has the following files

_search.rhtml
index.rhtml  
/layouts
     application.html.erb   main.rhtml
/trip
     _info.rhtml    _tabs.rhtml map.rhtml

When i start the server and got to localhost:3000/trip on my browser, I get the error

No route matches [GET] "/trip"

Do I need to configure anything in the routes.rb file?

  • 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-05-29T11:02:18+00:00Added an answer on May 29, 2026 at 11:02 am

    I would advise a trip through the routing guide, which can help answer most, if not all of the questions that come up with folks who are new to Rails and routing through paths.

    To answer your question, yes, you do need to configure stuff in the routes.rb file – this file is central to making the routing work at all.

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

Sidebar

Related Questions

Just started learning Haskell. I have an empty source file with this inside: pe
I just started learning C but I don't understand this part of the code.
I just recently started learning RoR and found that Prototype.js is a default javascript
Just started learning PySide and is having problem with QTimer I have this #!/usr/bin/python
I just started learning C++ couple of weeks ago. So now I have this
I just started learning HTML5, I started with normal text file and changed its
I just started learning some ruby, and I want to do something like this:
I just started learning swing, and couldn't find any clear instructions for this: I'd
Just started learning/using pipes and was wondering how to route file output of an
We just started learning about class inheritance and attribute lookup in python. I have

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.