Colin Law wrote: > On 19 September 2010 15:29, Abder-Rahman Ali <[email protected]> > wrote: >> Frederick Cheung wrote: >>> On Sep 19, 3:11�pm, Abder-Rahman Ali <[email protected]> wrote: >>>> </canvas> >>> What's wrong with <%= some_object.width %> ? >>> >>> Fred >> >> I tried: >> >> <canvas id="draw" height = "@dicom.height" width= "@dicom.width"> > > You have to put the bits of ruby code that you want expanded inside <%= > %> > <canvas id="draw" height = <%= @dicom.height %> width= <%= @dicom.width > %> > > > Colin
Oh, thansk Colin, I forgot <%= %>. When I do that, I get: Showing C:/Users/Abder-Rahman/Desktop/Research/dcm/app/views/dicoms/show.html.erb where line #2 raised: is not recognized by the 'identify' command. Either when I write it as: <canvas id="draw" height = <%[email protected]%> width= <%[email protected]%> > Or, <canvas id="draw" height = "<%[email protected]%>" width= "<%[email protected]%>" > What do you think? -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

