which Gem To Used For Building A Site Like Mediafire

44 views
Skip to first unread message

Edward Maya

unread,
Mar 21, 2015, 4:32:24 AM3/21/15
to rubyonra...@googlegroups.com
I want to build a website like Mediafire where User can upload and
download media files(Audio,Video,Images(All Formats)). and from already
answered answered questions i have come through with a gem called
paperclip.

so my question now is how do i integrate paperclip with devise(in order
to build sign up form) and link my web pages with them ?

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Mar 21, 2015, 5:03:11 AM3/21/15
to rubyonra...@googlegroups.com
On 21 March 2015 at 08:31, Edward Maya <li...@ruby-forum.com> wrote:
> I want to build a website like Mediafire where User can upload and
> download media files(Audio,Video,Images(All Formats)). and from already
> answered answered questions i have come through with a gem called
> paperclip.
>
> so my question now is how do i integrate paperclip with devise(in order
> to build sign up form) and link my web pages with them ?

I don't understand what you mean by integrate paperclip with devise.
If you want authorisation then use devise for that, if you want to use
paperclip to upload files then use that. In what way do the two
functions interact? Also what do you mean by "link my web pages with
them"? What web pages are you talking about?

Colin

>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a0c21d7db59962f22adea9cdc0cd9398%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

Edward Maya

unread,
Mar 21, 2015, 6:02:17 AM3/21/15
to rubyonra...@googlegroups.com
Colin Law wrote in post #1170637:
> I don't understand what you mean by integrate paperclip with devise.
> If you want authorisation then use devise for that, if you want to use
> paperclip to upload files then use that. In what way do the two
> functions interact? Also what do you mean by "link my web pages with
> them"? What web pages are you talking about?
>
> Colin

lets not mess up things. I just want to build a website same as
mediafire in rails so what should i go for- which gem to use for
uploading files and by "integrate paperclip with devise" i mean how to
use 2 gems and link them together so that in my sign up form user have
the option to upload avatar and also upload files on a diff web page
where user only upload files and after uploading his files a link should
be generated for downloading that file. hope you understand now what i
want

Colin Law

unread,
Mar 21, 2015, 8:10:41 AM3/21/15
to rubyonra...@googlegroups.com
Do you know how to build a website with rails?

Colin

Edward Maya

unread,
Mar 22, 2015, 12:17:40 AM3/22/15
to rubyonra...@googlegroups.com
Colin Law wrote in post #1170641:
>
> Do you know how to build a website with rails?
>
> Colin

Yea i do know how to build apps in rails with single gems like spree and
devise . .. but this is the first i'm gonna use more then 2
gems(paperclip, devise) and may be more so i don't know how to link
them.
any way to build what i was asking ?

Colin Law

unread,
Mar 22, 2015, 4:55:08 AM3/22/15
to rubyonra...@googlegroups.com
On 22 March 2015 at 04:16, Edward Maya <li...@ruby-forum.com> wrote:
> Colin Law wrote in post #1170641:
>>
>> Do you know how to build a website with rails?
>>
>> Colin
>
> Yea i do know how to build apps in rails with single gems like spree and
> devise . .. but this is the first i'm gonna use more then 2

I don't think so, if you look in Gemfile.lock you will see that you
are using dozens of gems.

> gems(paperclip, devise) and may be more so i don't know how to link
> them.
> any way to build what i was asking ?

First start with basic site with the fundamentals of what you want.
Then add devise gem understand how to use that to login and protect
pages in your app. Then add paperclip to upload the files, using the
facilities of devise to protect the actions.

Colin

Edward Maya

unread,
Mar 22, 2015, 2:07:01 PM3/22/15
to rubyonra...@googlegroups.com
Colin Law wrote in post #1170678:
> First start with basic site with the fundamentals of what you want.
> Then add devise gem understand how to use that to login and protect
> pages in your app. Then add paperclip to upload the files, using the
> facilities of devise to protect the actions.
>
> Colin

And after that ? for downloading files and link generated after
uploading files?

Emmanuel Abia

unread,
Mar 22, 2015, 2:23:36 PM3/22/15
to rubyonra...@googlegroups.com

Collins has spoken well in this matter...I like his responses. Do what he has instructed...Goodluck.

--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Hassan Schroeder

unread,
Mar 22, 2015, 2:57:41 PM3/22/15
to rubyonrails-talk
On Sun, Mar 22, 2015 at 11:06 AM, Edward Maya <li...@ruby-forum.com> wrote:

> And after that ? for downloading files and link generated after
> uploading files?

Seriously, have you even looked at the Paperclip documentation?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Edward Maya

unread,
Mar 23, 2015, 12:27:36 AM3/23/15
to rubyonra...@googlegroups.com
Hassan Schroeder wrote in post #1170698:
>
> Seriously, have you even looked at the Paperclip documentation?
>

And seriously why guys here don't give exact answer without flaming i
mean giving an exact answer with link is that difficult or if one don't
wants to do that then is it that hard to keep your hands off from
posting ?

Krishna Gundala

unread,
Mar 23, 2015, 12:51:22 AM3/23/15
to rubyonra...@googlegroups.com
On Sun, Mar 22, 2015 at 3:57 PM, Hassan Schroeder <hassan.s...@gmail.com> wrote:
On Sun, Mar 22, 2015 at 11:06 AM, Edward Maya <li...@ruby-forum.com> wrote:

> And after that ? for downloading files and link generated after
> uploading files?

    I agree with Hassan Suggestion , Please go through Paperclip documentation,
    if not Can you have a look at carrierwave gem, Hope that helps your needs.

Seriously, have you even looked at the Paperclip documentation?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Vivek Sampara

unread,
Mar 23, 2015, 12:52:16 AM3/23/15
to rubyonra...@googlegroups.com
There are some nice people (colin) who try to keep this community free from junk and help genuinely. And there are some ignorant people like you who doesn't give a rats ass to do your homework before asking a question here. I don't mean to say asking stupid questions is wrong but the least you could do is learn the basics before asking something. 

This is how your question has been framed "How do i fly a plane ? ". You have no idea how planes work, you don't care to understand the physics behind it, you don't care about how one can become physically fit. Its because of you lazy souls that people have stopped helping sometimes. I think you must be working for some stupid software shop where you were assigned this task and you just want to build a web application as huge as media fire in a week and get back to you daily soaps. 

Please do us a favor and keep your hands off this community if you don't have the bare minimum social ethics. 


--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Scott Ribe

unread,
Mar 23, 2015, 12:58:11 AM3/23/15
to rubyonra...@googlegroups.com, Edward Maya
On Mar 22, 2015, at 10:27 PM, Edward Maya <li...@ruby-forum.com> wrote:
>
> And seriously why guys here don't give exact answer without flaming i
> mean giving an exact answer with link is that difficult or if one don't
> wants to do that then is it that hard to keep your hands off from
> posting ?

1) You've gone past asking for help & advice, and are essentially asking people to write your code for you.

2) What you call "flaming" was actually still helpful. You need to do what has been suggested multiple times: read the Paperclip documentation (and Rails tutorial if you have not yet). Pointing you to the correct documents, rather than spoon-feeding excerpts to you, is not flaming. Demanding to be spoon-fed the exact code you need to write, the complaining about being told what documentation to read, is ridiculous.

--
Scott Ribe
scott...@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice





Krishna Gundala

unread,
Mar 23, 2015, 1:02:16 AM3/23/15
to rubyonra...@googlegroups.com
I Agree with you Vivek,

As per any community norms.. Anyone who has a problem can post a query,Its our prime responsibility to give proper answer for that.We need to hold our shoes until he realizes.

But as Vivek mentioned, before posting a query, we need to do home work on it... and even then if we find issues.. then community can help.

Please don't get panic.
My Apologies if the comments hurts anyone feelings.

Nugi Nugraha

unread,
Mar 23, 2015, 4:08:58 AM3/23/15
to rubyonra...@googlegroups.com
On Mon, Mar 23, 2015 at 11:27 AM, Edward Maya <li...@ruby-forum.com> wrote:
Hassan Schroeder wrote in post #1170698:
>
> Seriously, have you even looked at the Paperclip documentation?
>

And seriously why guys here don't give exact answer without flaming i
mean giving an exact answer with link is that difficult or if one don't
wants to do that then is it that hard to keep your hands off from
posting ?

Edward Maya

unread,
Mar 23, 2015, 5:57:46 AM3/23/15
to rubyonra...@googlegroups.com
Nugi Nugraha wrote in post #1170730:
> On Mon, Mar 23, 2015 at 11:27 AM, Edward Maya <li...@ruby-forum.com>
> wrote:
>
>>
> http://www.catb.org/esr/faqs/smart-questions.html

Is paperclip enough for downloading and generating download link after
file upload ?

Colin Law

unread,
Mar 23, 2015, 8:14:51 AM3/23/15
to rubyonra...@googlegroups.com
On 23 March 2015 at 09:56, Edward Maya <li...@ruby-forum.com> wrote:
> Nugi Nugraha wrote in post #1170730:
>> On Mon, Mar 23, 2015 at 11:27 AM, Edward Maya <li...@ruby-forum.com>
>> wrote:
>>
>>>
>> http://www.catb.org/esr/faqs/smart-questions.html
>
> Is paperclip enough for downloading and generating download link after
> file upload ?

What else are you looking for other than that described, with
examples, at https://github.com/thoughtbot/paperclip?

Colin

André Orvalho

unread,
Mar 23, 2015, 8:39:40 AM3/23/15
to rubyonra...@googlegroups.com
To get the right answers you got ask the right questions, but maybe you should try and google a little around: http://bit.ly/1xcPWrc just a little...

Edward Maya

unread,
Mar 23, 2015, 9:01:18 AM3/23/15
to rubyonra...@googlegroups.com
Colin Law wrote in post #1170738:
> What else are you looking for other than that described, with
> examples, at https://github.com/thoughtbot/paperclip?
>
> Colin

i know my english i bad but is it that hard to understand what i am
saying
have you ever heard of site mediafire ?? mediafire.com(in case you
don't) go and make one account there and after uploading your file
mediafire will generate a download link for you so that you can share
that link with others and they will be able to download that file too
now tell me can paperclip be able to do this ??

Colin Law

unread,
Mar 23, 2015, 9:35:16 AM3/23/15
to rubyonra...@googlegroups.com
No, your English is not bad. I think I understand what you want to
do. But since the link I provided appeared to me to cover what you
want to do I asked you to explain what in particular you are worried
might not be available.

Colin

Scott Ribe

unread,
Mar 23, 2015, 9:40:29 AM3/23/15
to rubyonra...@googlegroups.com, Edward Maya
On Mar 23, 2015, at 7:00 AM, Edward Maya <li...@ruby-forum.com> wrote:
>
> i know my english i bad

Your English is fine. What's bad is your continued unwillingness to look at the resources you've been referred to.

Edward Maya

unread,
Mar 24, 2015, 2:41:06 AM3/24/15
to rubyonra...@googlegroups.com
Colin Law wrote in post #1170743:
> No, your English is not bad. I think I understand what you want to
> do. But since the link I provided appeared to me to cover what you
> want to do I asked you to explain what in particular you are worried
> might not be available.
>
> Colin

"But since the link I provided appeared to me to cover what you want to
do" that is where you are getting me wrong paperclip documentation and
links all provided only refers to uploading but i couldn't find anything
in there which gives me the answer for my question "suppose i uploaded a
file in a website then the website will provide me a link which says
share this link with other users so that they can download your file
too" i am just asking this. and yea m not asking for exact code or
proper article from where i can copy paste i just want a proper
direction in this.

Colin Law

unread,
Mar 24, 2015, 5:28:05 AM3/24/15
to rubyonra...@googlegroups.com
I agree the readme is not very clear on this. The url method provides
the url to the uploaded file. The section Show View assumes that the
file is an image with thumbnails, and so is using image_tag. If
instead it is a file to be downloaded you would need something like

<%= link_to "Download", @user.avatar.url %>
though you would probably not have called it avatar of course, and it
may be attached to a model other than User.

Colin
Reply all
Reply to author
Forward
0 new messages