Action Controller : Exception Caught

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?

On 24 January 2012 11:55, Anand S. [email protected] 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 G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw