It can be accomplished by calling the to_param (not to_parm) method on the object in question. For instance, @city.to_param, where @city is a City object.
On Jan 4, 3:20 am, Quee WM <[email protected]> wrote: > is there a way to pass the data returned by the to_parm function in a > helper? > > i followed the info provided > athttp://www.jroller.com/obie/entry/seo_optimization_of_urls_inand am > able to successfully get the correct urls, now i want to be able to get > the same (id-whatever) text and pass it to a helper function for further > processing. > > Any ideas as to how this can be achieved? > -- > Posted viahttp://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

