Wednesday, February 25, 2009
Custom routing in RoR
The index.html.erb view sample
The resources in config/routes.rb
The user_pages.rb controller
The results
Added a feature in Bizonnet, My Pages or List of my SMS Business Location. After the user logged in, they can view,edit or destroy the added pages. And the system will list all the created pages created by them. If the pages spanning way beyond 10 pages, the system will automatically trigger Pagination helper, so the user can flip thru the list of pages using the helpers.
I'm using http://domain.com/users/:user_id/pages/:id format. So in the config/routes.rb I have to modify it.
It's so tired..and I need a new haircut by today. Bye
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment