On 20 May 2008, at 22:46, nameth wrote:
>
> is this possible and if so how? Thanks
>
> fin = "BfAmProducts.find_all_by_bp_cat_main_id_1 1000"
>
You mean you want to eval the string? (then use eval, and careful
about what you feed it)
Fred> products = fin
>
> ## This is what i want to get
> products = BfAmProducts.find_all_by_bp_cat_main_id_1 1000
>
> ##Getting this
> products = "BfAmProducts.find_all_by_bp_cat_main_id_1 1000"
>
> how can i convert that string?
>
> Thanks for your time
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---