Tuesday, January 5, 2010

[Rails] Re: to_parm and how it can be used in a helper

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 <li...@ruby-forum.com> 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/.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate