Hi All,
I am new to Rails. I installed rails 3.2.13. Have Ruby ver. 1.9.2p20.
I created a very simple rails example as follows.
1. Created rails app called "chart"
2. Generated a controller called - "draw" that has the following lines
of code. It has a action called "load" which has no code in it.
class DrawController < ApplicationController
def load
end
end
3. I then navigated to following directory to create a view template of
extension - .rhtml
C:\rails\chart\app\views\draw\
4. I start Webrick and hit URL - "
http://localhost:3000/draw/load"
I get the following error:
No route matches [GET] "/draw/load"
Try running rake routes for more information on available routes.
The above example is most basic i suppose and should work. The .rhtml
page just has plain html.
Can someone please tell me what could be the issue. I remember this
worked fine with previous rails version. Has anything changed?
Help much appreciated.
--
Posted via
http://www.ruby-forum.com/.