Generated a controller "rails generate controller say" and then added a method to id named hello as. def hello end Made a file /app/view/say/hello.html.erb as "sudo gedit hello.html.erb" and add follwoing to it
<html> <head> <title>Hello, Rails!</title> </head> <body> <h1>Hello from Rails!</h1> </body> </html> Browse to locahost:3000/say/hello gives the error Routing Error No route matches "/say/hello.html.erb" Amrit pal -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.