Pal Pandi
2012-May-24 13:11 UTC
i am getting override method issue in compute_public_path'' for module `ActionView::Helpers::AssetTagHelper''
Hi All,
I am doing migration rails 3.0.5 to 3.2.3 and also changed ruby
versions from 1.8.7 to 1.9.3.
I want override the method
compute_public_path(ActionView::Helpers::AssetTagHelper).
Now i got this error while migrating the application (3.2.3).
`alias_method'': undefined method `compute_public_path'' for
module
`ActionView::Helpers::AssetTagHelper'' (NameError)
Please give me your valuable suggestions the above issue.
I have done small program. it is working perfectly.
class String
alias_method :old_to_s, :to_s
def to_s
if self=="one"
"coming if "
else
"coming else"
end
end
end
str=String.new("one")
p str.to_s
p str.old_to_s
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.