when I display in an html page :

<div class="contact_map">
<iframe width="276" height="180" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0" src="http://maps.google.com/maps?
ie=UTF8&amp;f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=crach,
+morbihan,
+56950,+france&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=37.325633,62.050781&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=Crac'h,
+Morbihan,+Brittany,
+France&amp;t=m&amp;z=12&amp;ll=47.616486,-3.000283&amp;output=embed"></
iframe>
</div>

I get it right, but not in haml :

.contact_map
%iframe{:width => "276", :height => "180", :frameborder =>
"0", :scrolling => "no", :marginheight= => "0", :marginwidth =>
"0", :src => "http://maps.google.com/maps?
ie=UTF8&amp;f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=crach,
+morbihan,
+56950,+france&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=37.325633,62.050781&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=Crac'h,
+Morbihan,+Brittany,
+France&amp;t=m&amp;z=12&amp;ll=47.616486,-3.000283&amp;output=embed"}


is there any reason ? obvious ? hope to display it this year ...

Happy 2012 !

--
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 Dec 29, 2011 at 9:33 pm

    On 28 December 2011 18:05, Erwin wrote:
    when I display in an html page :

    <div class="contact_map">
    <iframe width="276" height="180" frameborder="0" scrolling="no"
    marginheight="0" marginwidth="0" src="http://maps.google.com/maps?
    ie=UTF8&amp;f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=crach,
    +morbihan,
    +56950,+france&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=37.325633,62.050781&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=Crac'h,
    +Morbihan,+Brittany,
    +France&amp;t=m&amp;z=12&amp;ll=47.616486,-3.000283&amp;output=embed"></
    iframe>
    </div>

    I get it right, but not in haml :

    .contact_map
    %iframe{:width => "276", :height => "180", :frameborder =>
    "0", :scrolling => "no", :marginheight= => "0", :marginwidth =>
    "0", :src => "http://maps.google.com/maps?
    ie=UTF8&amp;f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=crach,
    +morbihan,
    +56950,+france&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=37.325633,62.050781&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=Crac'h,
    +Morbihan,+Brittany,
    +France&amp;t=m&amp;z=12&amp;ll=47.616486,-3.000283&amp;output=embed"}


    is there any reason  ?  obvious ?    hope to display it this year ...
    Have a look at the html of the page (View > Page Source or similar in
    browser) in each case and compare them. They must be different.

    Colin

    --
    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.
  • Kad Kerforn at Jan 5, 2012 at 1:10 pm

    Colin Law wrote in post #1038772:
    Have a look at the html of the page (View > Page Source or similar in
    browser) in each case and compare them. They must be different.

    Colin
    Thanks Colin .. they were different

    using HTML, in the iframe src url, I had :
    maps?ie=UTF8&amp;f=q&amp;source=s_q ..... # &amp; !!!

    I was using ALSO &amp; in HAML ! .. the correct way is only the "&"
    ampersand character...
    maps?ie=UTF8&f=q&source=s_q ..... # only &

    thanks a lot for pointing me in the right direction and read read read
    again the generated code ..
    Happy New Rails Year !

    --
    Posted via http://www.ruby-forum.com/.

    --
    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
postedDec 28, '11 at 6:06p
activeJan 5, '12 at 1:10p
posts3
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Kad Kerforn: 1 post Colin Law: 1 post Erwin: 1 post

People

Translate

site design / logo © 2022 Grokbase