Using Dropbox in Rails

78 views
Skip to first unread message

Amber Flynn

unread,
Nov 1, 2014, 7:08:43 PM11/1/14
to rubyonra...@googlegroups.com
Hi everyone,

This is my first time using an API and I'm lost. I basically need to
create a Rails app that authenticates a user, lists their dropbox
folders, and allows the user to upload files to the folders.

I know Dropbox has tutorials for all the above, but they're very
confusing. I tried following them but I seem to miss something. I'm not
always sure where the code goes in the rails app and I'm not sure
whether I need to install gems for authentication and file upload (do I
need gems like Sorcery or Carrierwave? or is the Dropbox gem alone
sufficient?)

I searched for tutorials explaining how use the Dropbox API but couldn't
find anything that made any sense. They all assume that the person
reading the tutorial knows where each fragment of code goes, which isnt
my case.

Could anyone recommend/share resources or tutorials on how to achieve
the above? I'd really appreciate it!

thanks a lot!

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

Jim Ruther Nill

unread,
Nov 1, 2014, 8:28:59 PM11/1/14
to rubyonra...@googlegroups.com
I think I've tried the gem before but have since switched to the
chooser solution since it was a lot easier to implement.  In your
case, since you want to save to the user's dropbox folder, just

--
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/1c5c191714184cb420cfaedb4436b81d%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.



--
-------------------------------------------------------------
visit my blog at http://www.jimruthernill.com

Amber Flynn

unread,
Nov 2, 2014, 3:30:47 AM11/2/14
to rubyonra...@googlegroups.com
thanks so much Jim I'm going to try this!

Amber Flynn

unread,
Nov 2, 2014, 4:02:14 PM11/2/14
to rubyonra...@googlegroups.com
Hi,
I could really use some help. I keep getting this error and I can't
figure out how to fix it. Does it have anything to do with the redirect
URIs in the App Console > Settings of the Dropbox app I created?

I'm running into lots of bugs and spent the entire day trying to figure
them out. Nothing seems to work and I think most of the problems I'm
facing come from my routes.

If anyone's free to help me out through Skype I'd give them a github
link to my code. Thanks to anyone who can help.

Attachments:
http://www.ruby-forum.com/attachment/10242/FireShot_Capture_-_Dropbox_-_400__-_https___www.dropbox.com_1_oauth2_authorize.png
Reply all
Reply to author
Forward
0 new messages