Colin Law wrote:
> On 19 September 2010 15:29, Abder-Rahman Ali <li...@ruby-forum.com> 
> wrote:
>> Frederick Cheung wrote:
>>> On Sep 19, 3:11�pm, Abder-Rahman Ali <li...@ruby-forum.com> 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 = <%...@dicom.height%> width= <%...@dicom.width%> >

Or,

<canvas id="draw" height = "<%...@dicom.height%>" width= 
"<%...@dicom.width%>" >

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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to