Displaying 20 results from an estimated 300 matches similar to: "attachment_fu giving problem on production"
2007 Sep 25
2
attachment_fu default path
Hi all. I''ve done a little google search, but doesn''t find anything
(with "attachment_fu default path") that could help me in changing
attachment_fu''s default path.
My model:
[audio.rb]
has_attachment :max_size => 20.megabytes
has_attachment :content_type => "audio/mpeg"
has_attachment :storage => :file_system
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make
attachment_fu polymorphic, so you no longer need a different table and
Model class for every associated attachment (Productimage, Ad_doc,
etc). All you really need is one model and table to handel all your
attachments - in some cases, anyway. I have the code working, but have
run into one small hitch that I can''t seem to
2007 Aug 22
8
How to spec an attachment_fu model
First off, I''m not trying to spec attachment_fu, I know it''s been tested.
But, I added some code to that model that I do need to test. Basically,
I need to somehow fulfill the "uploaded_data" property so I can actually
run my tests(otherwise they fail because of validations). The
"uploaded_data" field is what would grab the multipart data from form.
Here
2007 Apr 27
3
attachment_fu content_type problem
Hi all....
Admittedly I''m new to Rails and trying to find my way but I''m having
an issue with uploading documents with attachment_fu.
I have a form where I''m uploading multiple attachments (using AJAX to
add file_filed_tags). That seems to work pretty well. The problem is
I can''t seem to get the content_type to work as I would expect. For
example, if I use
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
I just installed attachment_fu and for some reason, it seems to be
looking in the wrong location for my images.
I have a Product model that belongs to a photo model. the photo model
has the attachment_fu installed and configured like so:
class Photo < ActiveRecord::Base
has_attachment :content_type => :image, #Allow
standard image formats
:path_prefix
2007 Apr 21
3
attachment_fu thumbnails
howdy!
I had the problem that attachment_fu didn''t make a thumbnail, but
everything else worked. I read this post
http://www.ruby-forum.com/topic/104213 and added a parent_id column. now
I get the following error when I trie to add a photo:
undefined method `find_or_initialize_by_thumbnail_and_parent_id'' for
Photo:Class
my code is:
class Photo < ActiveRecord::Base
2007 Mar 28
3
attachment_fu Not Resizing
Hello,
Recently attachment_fu stopped resizing images for me. I''m puzzled
because before today it was resizing them and I don''t know what''s
changed. Here''s my code:
class Product < ActiveRecord::Base
has_attachment :content_type => :image,
:storage => :file_system,
:max_size => 18.megabytes,
2009 Jul 30
4
attachment_fu + :path_prefix
Hello friends,
I have a query like I am using a attchment_fu to store images.
But the i don''t want to store to the default path let say :path_prefix =>
''public/uploads'' i want a dyname path for e.g :path_prefix => ''public/#{
current_user.id}'', So just wanted to know how can i say images to the
dynamic location.
Regards
Abhishek Shukla
2009 May 29
4
Mi browser no muestra el formato para captura desplegado
Hola,
Soy nuevo totalmente con ruby on rails..de hecho durante 15 a#os
programe con un RAD que no maneja codigo asi que estoy intentando
retomar este tipo de lenguajes nuevamente..y vaya que si han cambiando.
Estoy siguiendo un tutorial que indica como hacer una aplicacion
sencilla llamada ''DEPOT'', despues de sortear algunos problemas de
configuracion de mysql y el mismo rails
2009 Mar 06
1
attachment_fu has_attachment model logic reasoning?
Both Attachment_fu and Paperclip use something like ''has_attachment'' to
work their magic on an existing model like a User in the context of a
profile picture or something like that.
I find this idea pretty constricting, as it doesn''t allow for multiple
profile pictures for example. Or at least I wouldnt know how to set this
up with either of the 2 plugins.
I am
2008 May 28
1
Attachment_fu, polymorphism and customization
Hi,
I got Image model that has_attachment and belongs_to 2 other models
via polymorphic association.
The problem is that I''d like to customize has_attachment options
(resize image) depending on which model the Image is related to - i.e.
if Image belongs to Article it should be resized using different
settings than if it belongs to Header.
Is there a smart way to do it or do I have to
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
Hi there,
I''d like to use RMagick to watermark an image in the tmp directory
before Attachment_fu saves it to Amazon S3.
I took a look at the callbacks available in attachment_fu. There''s an
''after_attachment_saved'' method but this would be too late, and a
''before_thumbnail_saved'' but this is no good because it''s for
thumbnails.
I
2003 Mar 19
1
WINBIND RUNS BUT DONT AUTH THE NT USERS
Good morning, I am posting msgs on the NON OPERATION of WINBIND. GOOD I
should say that without I had made any change in the system it started to
work in an of my facilities. INCREDIBLE but it worked. The problem now is
that I tried log in the samba not previously using an user servant in the
smbpasswd and him of autentication mistake. But should not WINBIND
facilitate that? Do I need to have user
2009 Aug 24
1
Authlogic Forgot Password
Hi,
Has anyone implemented the Authlogic forgot password stuff?
Please let us know how to, if anyone has or has the code for it.
Thanks,
Pratik
2009 Nov 27
1
Nested model + error message
Hello Friend,
I want to override the default error message, but some how I am not able to
implement it.
The scenario is
I have a user table and user detail table I have implement nested model.
And the below mention message is appearing and instead of that I want
something "User Name cannot be blank"
- *User detail given name can''t be blank*
Thanks
Abhis
--
You
2008 Oct 06
8
.htaccess rewrite
can someone help me with an .htaccess rewrite?
i''m trying to convert all requests to "/?spot=8888" to be "/locations/
888".
thanks.
--~--~---------~--~----~------------~-------~--~----~
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
2007 Apr 17
1
attachment_fu - propagating attributes to thumbnails
I have a model using attachment_fu (via has_attachment) and I''m
creating thumbnails for the attached images. I have an extra field
''foo'' that I''m validating on create with validates_presence_of :foo.
One problem arises when I upload an image:
The ''foo'' is not propogating down to the thumbnails. What should I
put in my model to grab the
2009 Aug 25
17
WHy is rails so annoying to deploy?
I''ve been having great fun trying to deploy a fresh install of rails on
debian, specifically xlsuite to test it out, but my god how many more
errors can I take before I give up.
RAILS IS NOT NICE
After battling with countless different errors from trying Ubuntu,
Fedora, Windows and now Debian the list goes on and on and ON...
now the latest error
`load_missing_constant'':
2009 Apr 28
1
chmod in rails development
What chmod value I am supposed to use for rails app development? Is 777
a good idea? Or should I use sudo when I run my commands (such as
script/server)?
--
Posted via http://www.ruby-forum.com/.
2009 May 24
1
is f.submit in a form_for newer than submit_tag?
some books or even the rails api uses
form_for ...
...
submit_tag ...
end
and i found that the Rails 2.3.2 Scaffold uses
f.submit "Go"
instead... and this is not in the rails api doc. Is this a new
addition and is it suppose to replace submit_tag?
--
Posted via http://www.ruby-forum.com/.