Displaying 2 results from an estimated 2 matches for "string_ids".
Did you mean:
string_id
2006 Jun 17
2
URL based on acts_as_tree using routes
Hi There!
I''d like some feedback before I try to implement some funky rails
routes based on an acts_as_tree model.
I have a Page model that acts_as_tree. I''d like the URLs to look
something like this:
http://localhost/about-us/staff/jeff
or, another example...
http://localhost/what-we-do/products/our-great-cms/features/faqs/
So, as many sub-nodes the user creates,
2006 Apr 20
1
URL encode & decode
I have a link:
<%= link_to ''delete'', :action => ''destroy'', :id => u(string_id) %>
Helper method ''u()'' can encode a string to URL encoding, but I don''t
know which method can decode it? I want to used in controller. I have
not seen it in Rails''s document.
Thanks,
- Li Jie