We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,605 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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.

1
Contributor
0
Replies
1
View
Question
Answered
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

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.5439 seconds using 2.67MB