search for: mysecondcontroller

Displaying 1 result from an estimated 1 matches for "mysecondcontroller".

Did you mean: my_second_controller
2008 Sep 02
6
Writing new controllers
...ef index render :text => ''<html><body>My First Controller</body></html>'' end end http://192.168.1.1:8080/my_first/ -> all OK! Then, I add: app/controllers/my_second_controller.rb --------------------------------------------------------- class MySecondController < ApplicationController def index render :text => ''<html><body>My Second Controller</body></html>'' end end I open: http://192.168.1.1:8080/my_second/ And I have error: No route matches "/my_second/" with {:method=>:get} Why?...