On 24 January 2012 11:55, Anand Srinivasan
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> I had opened an existing ROR project in Netbeans 7.0. (Rails 3.1.3/Ruby
> 1.9.3) I was able to open the index home page of the project after
> compiling and and uploading to Webrick server. After I enter the URL as:
> http://localhost:3000/attachment/attach (server/controller/view-file), I
> receive a Routing Error (No route matches [GET]
"/attachment/attach").
> The webpage indicates a Action Controller : Exception Caught.
>
> How should I resolve this issue? Do I need to run something like
> "generate" to link the view files to the controller?
You probably need to specify a route in routes.rb if there is not one
already. Have a look at the Rails Guide on Routing. However if this
is supposed to be an existing app that did work then it should already
have the route.
After modifying routes.rb you need to restart the server.
Colin
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
gplus.to/clanlaw
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.