I am fetching the images from table called galleries.
The field include as id, user_id, pic.
While fetching the images from this table I need to specify each image in different sizes.
All I know is:
<% @us.each do |p| %>
<%= image_tag(p.pics, :size =>”150×300″), :class => “me” %>
<% end %>
This will fetch all the images from that table od same size.
How to fetch the images of different sizes?
Example in html code:
> <img class="me" src="/images/DSC01145.gif" width="200px"
> height="450px"/>
>
> <img class="me" src="/images/DSC01140.gif" width="100px"
> height="200px"/>
>
> <img class="me" src="/images/DSC01074.gif" width="100px"
> height="125px"/>
>
> <img class="me" src="/images/22.gif" width="175px" height="350px"/>
Thanks
I got the answer for the above….
As the images are always 3 in number, So I am writing in view as:
Thanks