hi guys,
I have show_image problem. I have the following code in
application_helper.rb in my rails project
def show_image(src,img_size)
img_options = { “src” => src.include?("/") ? src : “/images/#{src}” }
img_options[“src”] = img_options[“src”] + “.gif” unless
img_options[“src”].include?(".")
img_options[“border”] = “0”
img_options[“size”] = img_size
tag(“img”, img_options)
end
end
in my list.rhtml page I have the following code:
<%= show_image(“WORK2R-2_02.gif”,“16x16”) %>
But the second parameter is not working for me.
Is the problem in syntax?
plz make me clear.
sanjay