API Routing Problems
Ok, I'm using the Head First Rails book, which sadly, was written in 2009. So, the API has changed drastically. I am trying to manually configure a route to make the controller find my show page. The route the book tells me to type map.connect '/ads/:id', :controller=>'ads', :action=>'show' But this is obviously not working. How would I rewrite this line of code to make it properly conform to the new API?
Thanks in advance.
Related Article: Help Getting an API Working
is a Web Development discussion thread by tusharbhatia that has 3 replies, was last updated 1 year ago and has been tagged with the keywords: , script-configuration.
Dante2
Light Poster
49 posts since Sep 2010
Reputation Points: 16
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 5 Months Ago