Hello,
I’m just starting to learn Ruby on Rails. I’m following a tutorial in
a book but the examples are not working, I keep getting Routing Error
“no route found to match “/\look\at” with {:method=>:get}”
What I have is a pretty simple example. I’ve put all the files in the
correct directories
In ‘…\app\controllers\look_controller’ I have:
class LookController < ApplicationController
def at
@data = params[:text1]
end
end
In ‘…\app\views\look\at.rhtml’ I have:
Your name is <%= @data %> ------------------------------------------------------------------- In '..\public I have:Please enter your name.
---------------------------------------------------------------------
When I start the server and navigate to http://localhost:3000/input.html
I get the input.html page. When I use the submit button I get the
Routing Error. I have no idea why. At this point learning Ruby on
Rails isn’t much fun
Please help.
Thank you.
Brad