Can you post a complete solution with modified files?

On Jun 2, 3:13 am, Tomasz Czekala <[email protected]> wrote:
> I made it work. We must add in routes.rb:
> map.resources :workers, :member => { :picture => :get }
> and in controller:
> downloads_files_for :worker, :picture
>
> 2010/6/1 sanjayayogi <[email protected]>
>
>
>
>
>
> >http://hobousers.googlegroups.com/web/test1.files.tar.gz
>
> > I built a test to work out some of these issues. Maybe it will help
> > you to sort out some of the issues. Also search for paperclip in this
> > group and you will find a few useful links.
>
> > Good luck, let us know what works, as you sort it out.
>
> > On May 31, 6:04 am, Tom <[email protected]> wrote:
> > > I store pictures in DB using Pat Shaughnessy's Paperclip (could be
> > > done with attachment_fu) and I can't get to them through URL's. I get
> > > this when I try:
>
> > > Unknown action
>
> > > No action responded to 2. Actions: access_denied,
> > > authenticated_user_from_cookie, authorized?, avatars, create,
> > > create_auth_cookie, destroy, edit, ht, index, login_from_cookie,
> > > login_required, model, new, non_ssl_host, non_ssl_host=,
> > > redirect_back_or_default, show, ssl_host, ssl_host=, store_location,
> > > and update
>
> > > Attachment:
> > > has_attached_file :avatar, :url => "/:class/:id/:attachment?
> > > style=:style"
> > > the link
> > ishttp://localhost:3000/workers/2/avatars?style=original&1275292020
>
> > > how can I route links to correct files stored in DB?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hobo Users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<hobousers%2bunsubscr...@googlegroups 
> > .com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to