Erwin1
(Erwin)
January 14, 2012, 10:47am
1
I am trying display an image with the standard image_tag helper, using
options ...
= image_tag ("errors/not_found_medium.jpg", :size => "300x300", :alt
=> "error")
and I am getting a 550 error .. during haml compiling , seems not
accepting any option ( :size .. :alt .. height )
ERROR: compiling
_app_views_errors_render_____html_haml___2608007141878431500_70318571565920
RAISED /Users/yves/Developpement/Projects/DRONES/videopromo/app/views/
errors/render_404.html.haml:15: syntax error, unexpected ',',
expecting ')'
...("errors/not_found_medium.jpg", :size => "300x300", :alt => ...
what could be wrong ?
Colin_Law1
(Colin Law)
January 14, 2012, 11:24am
2
I am trying display an image with the standard image_tag helper, using
options ...
= image_tag ("errors/not_found_medium.jpg", :size => "300x300", :alt
=> "error")
and I am getting a 550 error .. during haml compiling , seems not
accepting any option ( :size .. :alt .. height )
ERROR: compiling
_app_views_errors_render_____html_haml___2608007141878431500_70318571565920
RAISED /Users/yves/Developpement/Projects/DRONES/videopromo/app/views/
errors/render_404.html.haml:15: syntax error, unexpected ',',
expecting ')'
...("errors/not_found_medium.jpg", :size => "300x300", :alt => ...
Try removing the space between image_tag and (
In Ruby you should not put a space there.
Colin
Erwin1
(Erwin)
January 14, 2012, 3:18pm
3
thanks , .. I realize that by duplicating another similar line ( copy/
paste) and changing the image url ...
looking so hard to the second part of the line I forgot the
beginning ..