<newbie warning (I am being self referencing here)>
I believe that you should replace ‘the options=’ with a comma, you
don’t need the curly braces despite them using them in the
documentation and if options had been something you would use, it
would have been a symbol ie :options and then it would be => rather
than =
Other than that, I am not sure that you can put align=“right” in an
image. I think it would have to be outside the image. In any case,
I’d use css as it is the morally right thing to do (I believe it
saves trees) and so your line might end up looking like this:
On Mon, Dec 17, 2012 at 12:55 AM, karthikeyan manivasagam [email protected] wrote:
Just make the attribute name in HTML as symbols followed by a value
as a key value pair
align = “left” HTML
:align => “left” RAILS
I just want to point out that you should not be using align, it’s not
supported in HTML5 because you can use css (read: float) and I also
want to point out that if you are just going to make your ALT the same
as your src minus extension you might as well not bother and let the
spec fail, I wish the engine were smart enough to detect people gaming
the system like that. Your desc should actually be a description or
don’t bother, you just take the piss out of the desc attribute and
what it’s used for in the current example.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.