Rails

Ruby on Rails: link_to and image_tag

Yet another quick code reminder as I always forget the syntax, this time to combine link_to and image_tag in Ruby on Rails. So if  you want an image_tag (here “logo.jpg”) to redirect the user to another URL (in this case,…


IT Support Newcastle is brought to you by Transcendit Ltd, contact us on 0191 482 0444