[Rails] Re: Changing the :path and :url options of has_attached_file in paperclip

2010-02-16 Thread Pat Shaughnessy
Probably you need to add a corresponding route + controller action to handle the download requests. I wrote a tutorial a while back on this: http://patshaughnessy.net/2009/5/16/paperclip-sample-app-part-2-downloading-files-through-a-controller - pat http://patshaughnessy.net On Feb 15, 10:10 pm

[Rails] Re: text field with autocomplete

2010-01-07 Thread Pat Shaughnessy
Maybe try form_for instead of form_remote_tag? I wrote a gem that creates some scaffolding code customized for the auto complete that might help you get a form working in your app quickly; see: http://patshaughnessy.net/2009/10/1/auto_complete-scaffolding Later you could adapt the scaffolding code

[Rails] Re: How to customize the default scaffold?

2009-12-10 Thread Pat Shaughnessy
Hi Patrick, I had the same idea a few months ago, and wrote a gem called “View Mapper” which does exactly this. See: http://patshaughnessy.net/view_mapper or: http://github.com/patshaughnessy/view_mapper The idea is that View Mapper will generate different variations of scaffolding code (called “

[Rails] Re: returning image in my search results

2009-12-03 Thread Pat Shaughnessy
Hello... +1 for paperclip or attachment_fu; they will make this a lot easier for you. Earlier this year I wrote a detailed tutorial on how to setup and use Paperclip in a new Rails application. Coincidentally, my example was to attach photos to users and then to show different size photos. At the

[Rails] Re: *** Quick help with paperclip ***

2009-11-02 Thread Pat Shaughnessy
Hi... sorry about those unhelpful replies; we were all beginners once too :( I wrote a paperclip tutorial that might help; I tried to write out step by step instructions: http://patshaughnessy.net/2009/4/30/paperclip-sample-app I've also been working on extending the scaffolding feature Rails pr

[Rails] Re: nested_attributes and fields_for and ajax

2009-10-30 Thread Pat Shaughnessy
Hi... you might want to take a look at: http://github.com/alloy/complex-form-examples And: http://github.com/ryanb/complex-form-examples Both of these are interesting sample apps loaded with good coding ideas. I don't believe either of them uses AJAX or link_to_remote exactly the way you intende

[Rails] Re: updating model while reading CSV

2009-10-30 Thread Pat Shaughnessy
block provided. On Oct 30, 9:45 am, Pat Shaughnessy wrote: > Hey John, > > Last week I wrote this code to allow you to easily create models/ > records using FasterCSV... it doesn't directly answer your question, > but it might help or at least give you some ideas:http://pastie.

[Rails] Re: updating model while reading CSV

2009-10-30 Thread Pat Shaughnessy
Hey John, Last week I wrote this code to allow you to easily create models/ records using FasterCSV... it doesn't directly answer your question, but it might help or at least give you some ideas: http://pastie.org/676681 If it looks this would be useful to you or others I can post it on github;

[Rails] Re: Problem getting started with auto_complete

2009-10-30 Thread Pat Shaughnessy
7; for GamesController:Class > in my controller. > > I'm using Ruby 1.8.6, Rails 2.3.3 > > According to everyone's responses and what I've found searching for > answers, this should work but > it doesn't in my environment... > > thanks for any input,

[Rails] Re: Problem getting started with auto_complete

2009-10-28 Thread Pat Shaughnessy
Hi... I've been working on a gem recently that allows you to generate scaffolding for auto_complete behavior, among other things. The idea was to make it easier to get started with using a plugin like auto_complete. See: http://patshaughnessy.net/2009/10/1/auto_complete-scaffolding Based on your

[Rails] Re: Get return from oracle procedure

2009-10-22 Thread Pat Shaughnessy
This doesn’t answer your question directly, but you might want to read about how to obtain Oracle debug output in your Rails app/log file: http://www.alexrothenberg.com/2009/08/how-to-capture-oracles-dbmsoutput-in.html I believe Alex’s patch was recently added to the Oracle Enhanced Adapter... i

[Rails] Re: rails-file-uploading

2009-10-16 Thread Pat Shaughnessy
Hi there... I wrote a tutorial about uploading files in a Rails app using a plugin called "Paperclip" - you might want to try that instead: http://patshaughnessy.net/2009/4/30/paperclip-sample-app - pat On Oct 16, 6:23 pm, Engadiner Haus wrote: > Hello. I am comp. new in RoR and i have problem

[Rails] Re: Autocomplete Plugin - how can I use same "text_field_with_auto_complete" twice on one page?

2009-06-07 Thread Pat Shaughnessy
I ran into the same problem a while back and forked the plugin to fix it; see: http://patshaughnessy.net/repeated_auto_complete Hope this helps, - pat On Jun 2, 1:51 pm, Andy wrote: > Any ideas here? > > On May 28, 1:49 pm, Andy wrote: > > > I'm trying to use an autocomplete twice on the same