sumanth and tom, i have got this talk:

http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/2b046253df1748af/f16363694a762882#f16363694a762882

thanks for your support, sumanth, i got your meaning now, tomorrow i
will try it in the office PC.

~alex zhou


---------- Forwarded message ----------
From: sumanth krishna <tosumanthkris...@gmail.com>
Date: Mar 12, 12:31 am
Subject: a beginner, i also encounter an issue about route.
To: Ruby on Rails: Talk


Hi,
few quick words:

Unless you specifically mention anything in the routes, you need not
bother about this file.

What I mean is, you can trigger that action either directly pointing
to the action
a)http://localhost:3000/say/hello
or by giving a nick name in the routes
b) map.connect '/hello', :controller => 'say', :action => 'hello'

Usually, the (a)works, else copy paste the (b) in your routes file it
would work.

On Mar 11, 6:19 pm, "iamzhouy...@gmail.com" <iamzhouy...@gmail.com>
wrote:

> On Mar 11, 9:45 pm, "iamzhouy...@gmail.com" <iamzhouy...@gmail.com>
> wrote:

> > On Mar 11, 7:10 pm, Tom Z Meinlschmidt <to...@meinlschmidt.org> wrote:

> > > iamzhouy...@gmail.com wrote:
> > > > the same issue talk here:

> > > >http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/...
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > i have also encountered an error=>
> > > > Routing Error
> > > > No route matches "/say/hello" with {:method=>:get}

> > > > and i checked the routes.rb under my application, the routes.rb show
> > > > the correct map :

> > > >   map.connect ':controller/:action/:id'
> > > >   map.connect ':controller/:action/:id.:format'

> > > > anyone can help me, thanks

> > > can you post a part from your log?
> > > what's the name of controler?

> > > tom
> > > --
> > > ===========================================================================
> > >  ====
> > > Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

> > >www.meinlschmidt.comwww.maxwellrender.czwww.lightgems.cz
> > > ===========================================================================
> > >  ====

> > ~~~~~~~~~~~~~~~~~~~~~
> > my controller name is Say, and action is hello, you mean that i can
> > find more information from my log file, right?

> > ~alex zhou
> > ~~~~~~~~~~~~~~~~~~~~~~~`

> help, help~~~
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to