Creating Custom URLs in Your Wheels App with Routes
December 18, 2008
Posted in Community
Posted By: Chris Peters
Raul Riera
Keep up the good work man hehe, if u need anything let us know. Btw is this blog running on wheels?
Oct 18, 2008
Raul Riera
Shouldn't this be http://www.domain.com/news/1/story/5 instead of http://www.domain.com/news/story/5 I think there should be an ID for the news right?
Oct 18, 2008
Chris Peters
@Raul: No, the format I have is correct. Match this... http://www.domain.com/news/story/5 To this... http://www.domain.com/controller/action/id And you get this... controller = news action = story id = 5 That is the default route for Wheels.
Oct 18, 2008
Chris Peters
Also, this blog is running on Ray Camden's BlogCFC. There was no need to re-invent the wheel on blogging platforms. We'll see if one gets implemented in Wheels in the future... :)
Oct 18, 2008
Raul Riera
Oh I see, I though it was a News tha hasMany Stories. I thought they were 2 models.
Oct 18, 2008
Please login to join the conversation! Login