Ruby on Rails Wednesday, November 6, 2013

On Nov 6, 2013, at 8:21 AM, Monserrat Foster wrote:

> Hello! I'm fairly new to Ruby and Rails, and currently I don't have any knowledge on interacting with the server's shell or a SVN server, but now I have to develop an app where admins allow/restrict access to files and folders from the app and some sort of version control of the files is need so I thought, to install a SVN server also and from the app allow users to access files they've been authorized to. I've been searching about this but I can't seem to find a concrete answer. Could some please tell me if this is possible and if so, point me in the right direction, what sort of stuff should i look into first?
>
> Thank you.

I built something vaguely similar to this a number of years ago, and while I didn't go down the SVN path, what I did was this:

1. User authentication with Devise, authorization with CanCan.
2. Files stored with Paperclip (in this case they were all PDF) with text scraped from each file into a keywords field on the parent model.
3. Files versioned with vestal_version, which provided forward/back in time navigation. (I did have to hack Paperclip to never delete an attachment, and to rename each attached file to include the version info.)

I'm not sure if SVN would have been a saner choice here, I did end up reinventing the wheel. The benefit for me was that everything was in one (Rails) mental model, so I didn't have to create a bridge back and forth between my user management and file management.

Walter

>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c192c4de-0beb-48b5-93be-199476dca5b5%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/D17FEF7F-D9F9-4689-A7E5-AF16581153DE%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment