Michał Makaruk
Michał Makaruk

Reputation: 283

How to share file in Rails to users

I have some pdf files in public/data I would like to share files to user ( the user can write url file and can see the file).

Upvotes: 1

Views: 255

Answers (1)

WarHog
WarHog

Reputation: 8710

Place file in public folder in root of your application. For example, if you have foo.txt document, user can type http://you_url/foo.txt and see it.

Upvotes: 2

Related Questions