I’m a little confused.
How would I go about producing this in embedded ruby?
< a id="example" href="image_tag thing.photo.url" >< img alt="example3" src="image_tag thing.photo.url(:small)" />< /a >
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you need to link a set of objects, rather than calling
link_to name, path, optionsyou can use a block, so you’re sending in the method(s) you want it to execute. Use the “do” syntax: