On 25 April 2013 09:36, cihad yildiz <lists@ruby-forum.com> wrote:
> I have 2 controller
> phone
> phones_feature
> I want to give a link from phone index page to phones_feature index page
> and also my link is an image
> here is my code
>
> <%=link_to image_tag(phone.image, :class => 'list_image'),:id=>phone.id
> %>
Get it working without the image_tag first, just as a simple link.
Then add the image tag.
Also if it still "doesn't work" tell us what did not work. Also have
a look at the html generated and check the html is correct.
>
> I wrote this but it doesnt work I am new I look exemples
Have you worked right through a good tutorial such as
railstutorial.org, which is free to use online? If not then I suggest
that would be a good idea to show you the basics of Rails.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment