search for: patshaughnessy

Displaying 7 results from an estimated 7 matches for "patshaughnessy".

2009 Jun 17
1
File UPLOAD and put it on a DB BLOB
@contact = Contact.new @contact.file_file_name=params[:contact][:file].original_filename @contact.file_content_type=params[:contact][:file].content_type.chomp @contact.file=params[:contact][:file].read @contact.save the first two elements work, @contact.file=params[:contact][:file].read results empty, can you say me where I am wrong. Sergio
2009 Dec 10
2
How to customize the default scaffold?
I know the scaffold generator is really only useful for beginners and/or very the preliminary state of a project, but I find that I use it a lot (especially, since I am still a beginner). There are a couple of things I find myself tweaking (or wanting to tweak, but never getting around to tweaking) each time I generate a new scaffold: 1) Change the layout from blah.html.erb to
2010 Jan 07
1
text field with autocomplete
Hey everybody, I am using text field with autocomplete in my posts new action. That works great. Response from autocompleter in firebug: POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms but if I use the same in edit action it fails and I got this error. POST http://localhost:3001/posts/781/auto_complete_for_tag_name 404 Not Found 81ms *** POSTS controller: *** def
2009 Nov 02
7
*** Quick help with paperclip ***
Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick and easy solution to allow users to add a profile picture. Anyway - I have followed the tutorial on here: http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/ I can add a file, but there isnt anywhere to upload it. I have followed the above tutorial word for word, but i dont
2010 Feb 15
4
Changing the :path and :url options of has_attached_file in paperclip
Hello, I am using the paperclip plugin to upload images and it works absolutely fine. I intend to save my uploaded images to C:\Application_name\public folder. Accordingly, with some study over the i-net, I changed the :path option of has_attached_file to - :path => "C:/Application_name/ public/:class/:attachment/:id/:style_:basename.:extension" Now, the files are being saved to
2010 May 18
0
Pat Shaughnessy's Paperclit problem
I''m using Pat Shaughnessy''s paperclip http://github.com/patshaughnessy/paperclip cause I need to store pictures in database. When I set :storage => :database in the avatar I get an error when starting server: C:/Ruby/lib/ruby/gems/1.8/gems/paperclip-2.2.6/lib/Paperclip.rb:301:in `[]'': Symbol as array index (TypeError) Had anyone this problem before? My...
2010 Sep 27
3
streaming response body to client?
So I''d like to stream my response body to the client. At least under Rails2, it looks like you can pass a Proc to render :text, to do that. I am in a Rails2 app right now, but will upgrade to Rails3 sometime in the next couple months, so don''t want to set myself up for failure. Anyone know the status of streaming responses in Rails3? Is it possible? Is there a different API