Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorHinesley committed Jun 13, 2014
2 parents d6e5cc7 + b3d42f6 commit 3c25ffb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ In your `application.css`, AFTER Bootstrap, include the css file:
*= require abracadabra
```

In your `application.js`, AFTER Jquery (required), include the javascript file:
OR if you're using SASS/SCSS:

```sass
@import "abracadabra-scss";
```

In your `application.js`, AFTER JQuery (required), include the javascript file:

```js
//= require abracadabra
Expand Down Expand Up @@ -59,15 +65,15 @@ It accepts the following parameters:
- `attribute: :name` - Specifies what attribute your text field will be updating.
#### OPTIONAL
- `class: "my-class"` - Class(es) to be added to the abracadabra link. The class "abracadabra" is added # either way. [*Default:* `"abracadabra"`]
- `class: "my-class"` - Class(es) to be added to the abracadabra link. The class "abracadabra" is added either way. [*Default:* `"abracadabra"`]
- `id: "my-id"` - ID to be added to the abracadabra link. [*Default:* `nil`]
- `value: "blah"` - An alternate value, other than what object.attribute would return. [*Default:* `object.attribute`]
- `method: "patch"` - HTTP REST method to use. Use anything but "get". [*Default:* `"patch"`]
- `buttonless: true` - Removes submit and cancel buttons, submission and cancellation is then one through the Enter/Tab and Escape keys, respectively. [*Default:* `false`]
- `buttonless: true` - Removes submit and cancel buttons. Submission and cancellation is then done through the Enter/Tab and Escape keys, respectively. [*Default:* `false`]
- `remote: true` - Same as link_to's `remote: true`, form submits via AJAX. [*Default:* `true`]
Expand Down

0 comments on commit 3c25ffb

Please sign in to comment.