Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make id consistent for all of readme #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Add the following js and css to your asset pipeline:
## Usage
Create a new view that uses the form helper `s3_uploader_form`:
```ruby
<%= s3_uploader_form callback_url: model_url, callback_param: "model[image_url]", id: "s3-uploader" do %>
<%= s3_uploader_form callback_url: model_url, callback_param: "model[image_url]", id: "myS3Uploader" do %>
<%= file_field_tag :file, multiple: true %>
<% end %>
```
Expand All @@ -65,7 +65,7 @@ Note: Its required that the file_field_tag is named 'file'.
Then in your application.js.coffee, call the S3Uploader jQuery plugin on the element you created above:
```coffeescript
jQuery ->
$("#s3-uploader").S3Uploader()
$("#myS3Uploader").S3Uploader()
```

Optionally, you can also place this template in the same view for the progress bars:
Expand Down Expand Up @@ -100,7 +100,7 @@ Optionally, you can also place this template in the same view for the progress b
key_starts_with: "files/",
acl: "public-read",
max_file_size: 50.megabytes,
id: "s3-uploader",
id: "myS3Uploader",
class: "upload-form",
data: {:key => :val} do %>
<%= file_field_tag :file, multiple: true %>
Expand Down