models are accessible from all levels of the application, so you can access
them the same way you access them from controllers
--
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
On Sep 19, 3:11 pm, Abder-Rahman Ali li...@ruby-forum.com wrote:
radhames brito wrote:
show the code where you are trying to access, ill see whats wrong with
it
Thanks @radhames.
The main issue is how to make a call to the height() and width() methods
in the model in this line in
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
/canvas
But, I don't the expected dimensions.
As when I calculated the
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
If this is only in the show method - one record, I assume, why not
pass the height and width as instance variables in the method call
which are then available in the view?
On Sep 19, 10:11 am, Abder-Rahman Ali li...@ruby-forum.com wrote:
radhames brito wrote:
show the code where you are trying
Bb Serviss wrote:
If this is only in the show method - one record, I assume, why not
pass the height and width as instance variables in the method call
which are then available in the view?
Thanks @Bb. How do you think this can be done?
--
Posted via http://www.ruby-forum.com/.
--
You
ok, im back.
has_attached_file :photo, :styles = { :original = [100%, :jpg], }
=== this here is incomplete and is you are only having the original
image there is no need to specify the style, and paperclip
wont convert the image to jpg, also is not good to put
convertion in the same thread
is not recognized by the 'identify' command.
you are running the paperclip on windows , you have to hack it so that the
command can be executed by the cmd.exe
in this branch is suppose to be fixed
http://github.com/ghazel/paperclip.git
--
You received this message because you are subscribed
Abder-Rahman Ali wrote:
I have asked this question on this forum:
http://www.ruby-forum.com/topic/216998#new
I think that main key here is how can I access the method in a model
within a view. Is there a way to do that?
If you have a model object, you can always call methods on it.
But be
Thanks Marnen.
Should I write the code the gets the height and width in a helper?
Do you have an idea of how to do that?
--
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,
10 matches
Mail list logo