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 ?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Colin Law at Jan 14, 2012 at 11:24 am

    On 14 January 2012 10:47, Erwin wrote:
    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

    what could be wrong ?

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


    --
    gplus.to/clanlaw

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Erwin at Jan 14, 2012 at 3:18 pm
    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 ..

    On Jan 14, 12:24 pm, Colin Law wrote:
    On 14 January 2012 10:47, Erwin wrote:








    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


    what could be wrong ?
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    gplus.to/clanlaw
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 14, '12 at 10:48a
activeJan 14, '12 at 3:18p
posts3
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Erwin: 2 posts Colin Law: 1 post

People

Translate

site design / logo © 2021 Grokbase