Displaying 20 results from an estimated 10000 matches similar to: "Paperclip gives an strange error message"
2009 Sep 03
12
paperclip is not saving the files
Hi all,
I''ve installed paperclips but
paperclip is not saving the files
my model has
has_attached_file :attachment,:styles => { :medium => "300x300>",
:thumb => "100x100>" }
and i have db migration as
class AddAttachmentToPolicies < ActiveRecord::Migration
def self.up
add_column :policies,
2009 Oct 08
2
Variable sizes with paperclip
How can i create variable sizes with paperclip.
That the user can set the size he want and paperclip makes the picture.
I only can create fixed sizes.
--
Posted via http://www.ruby-forum.com/.
2010 Feb 26
2
Routing Error using Paperclip
For some reason I can''t figure out why I am getting a routing error when
I add Paperclip support. I have another test app when similar code is
working.
I created a new test app first without Paperclip support and it was
doing the CRUD operation fine. However when I added Paperclip support I
get the following error?
Routing Error
user_url failed to generate from
2010 Apr 01
2
paper clip plugin error
coming this error in my paper clilp plugin m getting this error
* Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/
hrithik_roshan1,3756,1.jpg is not recognized by the ''identify''
command.
* Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/
hrithik_roshan1,3756,1.jpg is not recognized by the ''identify''
command.
* Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/
2009 Apr 16
6
Using Paperclip::Processor and RMagick to sharpen my thumbnails
Hi, I''m brand new to RMagick (and pretty new to Rails for that
matter!). Right now, site owners are allowed to upload product and
ingredient photos to the website. Everything works great, ingredients
are sized down and proportioned correctly...the problem is that the
resulting images are so blurry! So I''ve been doing some research and
it looks like Paperclip::Processor may be the
2008 Dec 19
5
paperclip
anyone can help me to use paperclip plugins..I have a problem using it.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from
2010 Aug 06
4
Paperclip not finding imagemagick on prod, works on dev
Hi,
I am using paperclip to attach documents to my models. it works
perfectly on my dev machine, but on the server I get a
CommandNotFoundError.
On my server if I ./script/console I can run imagemagick through
system("convert") and it works, so why can''t paperclip find it?
Thanks for your ideas
PS: the paperclip google group isn''t getting much answers so I am
2010 Aug 07
12
Paperclip Trouble - Not Writing to the Database
Hello all,
I''m a Rails newbie trying to get a basic implementation of Paperclip up
but it''s giving me problems. I''m developing on Windows XP (I know...)
with WEBrick and MySQL.
In my model I have:
class User < ActiveRecord::Base
has_attached_file :avatar,:styles => { :medium => "300x300>", :thumb
=> "100x100>" }, :url =>
2010 Aug 21
3
Cleanly handling sub-generatede files with Paperclip
Hi,
Let''s say I upload a pdf file. Imagemagick extracts all pages out of it
and stores the png images on the hard-drive. How to easily handle all
these generated files with Paperclip?
Has anyone done that before? Thanks for your advice
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2009 Nov 08
1
link_to_remote with image_tag using Paperclip
I am creating a layout of images with links.
In Photo model:
has_attached_file :mainimg, :styles => {:original =>
"465x365", :thumb => "80x70"}
In my Front controller:
def index
@photos = Photo.find(:all)
@photos = Photo.paginate :per_page => 28, :page => params[:page]
end
In index.dryml:
<% outer = ''a'' %>
2012 Aug 18
2
Paperclip images are not stored in my directory
It is my User.rb model,
My images are not stored in my assets directory..
has_attached_file :photo, :styles => { :small => "100x100#", :large =>
"500x500>", :thumb => "60x60>" },
:url => "/assets/users/:id/:style/:basename.:extension",
:path =>
2005 Mar 08
3
Making a module method available in view
I have a Rails application called RailsApp. In my RailsApp/lib
directory, I have a file called localization.rb that defines a module
called RailsApp with a Localization class that implements a method l.
(RForum devs and fans will recognize this as the YAML-based
localization feature in that package.)
I want to be able to call this method from my controllers and views.
I have added a
2011 Mar 17
1
Paperclip validates_attachment_content_type not working?
Hi,
I''m using the paperclip gem to upload photos.
I''m trying to use the content-type validator in my photo-model but
it''s not working.
Photo upload with just the file-size validator works.
What could this be?
Here''s my code:
http://pastebin.com/1nGfgmtN
Thanks,
Mathew
--
You received this message because you are subscribed to the Google Groups "Ruby on
2011 Jan 03
2
Adding style to model (paperclip)
hello,
I have a model (item) with one attachment (photo) and one style (small):
class Producto < ActiveRecord::Base
has_attached_file :photo, :styles => { :small => "50x50"},
end
I would like to add a new style (:large), so I modify item.rb:
class Producto < ActiveRecord::Base
has_attached_file :photo, :styles => {{ :small => "50x50"},{ :large =>
2009 Nov 27
1
Cucumber + Paperclip
Hello Friends,
First time I am writing a scenario for uploading images. But some how
things are not working as it should be
The cucumber scenario is
And I attach the file at "/home/user/Desktop/sdasd.png" to "avatar"
And I press "Upload Logo"
But I trace it. its showing up
avatar_file_name: "sdasd.png", avatar_content_type:* "text/plain",*
2006 Mar 30
15
Survey: Favored Rails Production Environment
We''re trying to set up a colocated server for deploying a Rails
application or three. Right now I''m undecided between a PC-based
server running FreeBSD and an Xserve running OS X. I''ve never
colocated before so I''m wondering if anyone has stories, tips, or
could say what their preferred OS is for running Rails.
I''m also wondering how performance of
2006 Sep 22
1
how about the global data when multiple backgroundrbs ?
Ezra,
Suppose a chatroom application, a RailsApp + 2 backgroundrbs: MiddleMan1&
MiddleMan2, running in 2 machines.
When Chater1 login, RailsApp call MiddleMan1 to get something about
Chater1 from db to memory, like his contacts or other personal settings.
When Chater2 login, RailsApp call MiddleMan2 do the same thing.
But who is reponsible for the Global Data? like a Online Chaters
2009 Aug 17
0
Paperclip: processor proc not firing
Hi
It''s extremely rare that I have to post something on the Rails list,
but this is one of those times that I''ve been completely stuck for
countless hours.
Environment: Rails 2.3.3
I''ve implemented a custom processor proc for video thumbnailing with
Paperclip (latest trunk version as git submodule, and yes, it''s
updated) using the instructions posted
2010 Oct 29
8
Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems
Hi all, I''ve got a feeling from other posts that this should be very
simple, but believe me I''ve looked around many tutorials / blogs, but
still cant even get the most basic setup working with paperclip and s3.
I am however pretty new to Rails, so could be doing something dumb.
-------
Firstly, to install and use paperclip and aws-s3 I''ve got them both in
by Gemfile:
2011 May 28
4
Rais 3, nested attributes problem with paperclip
I have two models, one model girl and one girl_photos (a file upload
asset). The only code I have in models which describes the association
is:
For the girl => belongs_to :girl and has_attached_file :photo
For the model girl_photos => has_many :girl_photos and
accepts_nested_attributes_for :girl_photos
I''ve tried to save as a nested attribute the photo, it saves the
association