0

I'm using Rails 3

I have a controller called subscriber_controller.rb

I just added an action called "def houston" and added this to my routes file

 match '/houston' => 'subscriber#houston'
 get "subscriber/houston"

but whenever I try to go to "http://localhost:3000/houston" which was the goal i get the error

Routing Error No route matches "/houston"

What else do I need to add to the routes file to find the correct action in the controller and have the url work as http://localhost:3000/houston ?

ChrisWesAllen
  • 4,935
  • 18
  • 58
  • 83

1 Answers1

1

What does "rake routes" give you?

I tried the same thing and it worked.

Check that you saved your routes file.

janegee
  • 126
  • 1
  • 2
  • 6