Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

[Delivers #89433964] File upload #299

Merged
merged 8 commits into from
Apr 21, 2015
Merged

[Delivers #89433964] File upload #299

merged 8 commits into from
Apr 21, 2015

Conversation

cmc333333
Copy link
Contributor

Adds paperclip and an attachments model to allow file uploading. This will use S3 if the appropriate environmental variables are set (namely a bucket name, the private, and public key).

Also generalized some styles to work with file uploads as well as comments.

Looks like:
screen shot 2015-04-15 at 4 46 29 pm

@@ -5,6 +5,7 @@ gem 'acts_as_list'
gem 'ar_outer_joins'
gem 'autoprefixer-rails'
gem 'awesome_print'
gem 'aws-sdk-v1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why v1? aws-sdk is the newer one, which it seems like Paperclip supports.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite yet: thoughtbot/paperclip#1764

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Far enough. Mind adding an inline comment linking to that issue?

<div class='row text-area-info-container'>
<div class='col-xs-7 col-sm-6 text-area-info-web'>
<p>
Attaching a file will associate it with this proposal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: seems like this would be obvious...no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing to "Attach a file (e.g. receipts, contract documents, etc.)"

@afeld
Copy link
Contributor

afeld commented Apr 21, 2015

A few suggestions, but no blockers. Branch-deploying.

@afeld
Copy link
Contributor

afeld commented Apr 21, 2015

  • Create bucket for testing
  • Create bucket for production
  • Set environment variables on c2-dev
  • Set environment variables on c2-staging
  • Set environment variables on c2-prod

afeld added a commit that referenced this pull request Apr 21, 2015
[Delivers #89433964] File upload
@afeld afeld merged commit 234087e into master Apr 21, 2015
@afeld afeld deleted the file-upload branch April 21, 2015 20:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants