Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (21 sloc) 1.886 kb
0f1de0d @bryanrite Documentation
authored
1 ## Welcome to the DAV4Rack Rails Example using Devise and Per-User Subdomains!
6d54a74 @bryanrite Rails skeleton
authored
2
0f1de0d @bryanrite Documentation
authored
3 If you don't know what DAV4Rack is, check out the gem by Chris Roberts: <https://github.com/chrisroberts/dav4rack/>
6d54a74 @bryanrite Rails skeleton
authored
4
e625582 @bryanrite even better documentation
authored
5 ### Walkthrough
6d54a74 @bryanrite Rails skeleton
authored
6
e625582 @bryanrite even better documentation
authored
7 #### Set It Up Locally
6cbe91b @bryanrite Better instructions
authored
8
e625582 @bryanrite even better documentation
authored
9 Clone the repo off Github and run `bundle install && rake db:migrate && rails s`
6cbe91b @bryanrite Better instructions
authored
10
e625582 @bryanrite even better documentation
authored
11 It will start up like a regular rails application.
6d54a74 @bryanrite Rails skeleton
authored
12
e625582 @bryanrite even better documentation
authored
13 With a web browser, goto `localhost:3000` and you should see the welcome page!
6d54a74 @bryanrite Rails skeleton
authored
14
e625582 @bryanrite even better documentation
authored
15 #### Setting Up User Accounts
6d54a74 @bryanrite Rails skeleton
authored
16
e625582 @bryanrite even better documentation
authored
17 The Welcome Page has links to Login and Sign Up. These are simple links provided by Devise.
18
19 Create an account (or many) using the Create Account link.
20
21 This creates a user account using a pretty vanilla install of Devise (with the exception of using usernames instead of email).
22
23 For each account you create, a folder will be created automatically in **Rails.root/public/system/userfiles**, this is where we will store the per-user subdirectories they will access over WebDAV.
24
97cb712 @bryanrite typo fix
authored
25 #### Connecting with WebDAV
e625582 @bryanrite even better documentation
authored
26
27 If you have created an account, you should be able to connect to it via WebDAV.
28
29 Boot up your WebDAV client (Apple Finder, Cyberduck, Cadaver, etc.) and visit: <webdav.lvh.me:3000>
30
472ad78 @bryanrite Typo fix
authored
31 If you don't know what *.lvh.me is, its just a CNAME to localhost, makes working with subdomains on your local machine easier. In this example we've constrained WebDAV to only work on the webdav subdomain, but you can change this in `routes.rb` if you desire.
e625582 @bryanrite even better documentation
authored
32
33 Enter the username and password for a user account you have previously registered and you should get a chrooted DAV folder!
6d54a74 @bryanrite Rails skeleton
authored
34
0f1de0d @bryanrite Documentation
authored
35 ### More help?
6d54a74 @bryanrite Rails skeleton
authored
36
e625582 @bryanrite even better documentation
authored
37 There is a step-by-step walkthough available: <https://github.com/chrisroberts/dav4rack/wiki/Advanced-Rails-3-Tutorial---Custom-Resource,-Devise,-and-User-Specific-Routing>
6d54a74 @bryanrite Rails skeleton
authored
38
7fe9851 @bryanrite Version bump
authored
39 Question or comments can be posted on github: <https://github.com/bryanrite/dav4rack-example-devise-subdirectories>
40
9e8d945 @bryanrite Minor version bump
authored
41 Version: 1.0.2
Something went wrong with that request. Please try again.