README.md in administrate-field-hyperlink-0.2.0 vs README.md in administrate-field-hyperlink-0.3.0
- old
+ new
@@ -4,10 +4,12 @@
[![Gem Version](https://badge.fury.io/rb/administrate-field-hyperlink.svg)](https://badge.fury.io/rb/administrate-field-hyperlink)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
A string field that is shows a hyperlink.
+![Example](./example.png)
+
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -50,10 +52,12 @@
### Options
| option | default | description |
|--------|-------|-------------|
| `scheme` | `https://` | Scheme to use if there is none given |
+| `fallback_href` | nil | `href` to use if the value is `blank?` |
+| `label` | `self#href` | The label to use instead of the `href` |
## Related
- [`Administrate`](https://github.com/thoughtbot/administrate): A Rails engine that helps you put together a super-flexible admin dashboard.
- [`Administrate::BaseController`](https://github.com/XPBytes/administrate-base_controller): :stars: A set of application controller improvements.
@@ -65,9 +69,10 @@
### Fields
- [`Administrate::Field::Code`](https://github.com/XPBytes/administrate-field-code): :pencil: A `text` field that shows code.
- [`Adminisrtate::Field::JsonEditor`](https://github.com/XPBytes/administrate-field-json_editor): :pencil: A `text` field that shows a [JSON editor](https://github.com/josdejong/jsoneditor).
+- [`Administrate::Field::LazyBelongsTo`](https://github.com/XPBytes/administrate-field-lazy_belongs_to): :pencil: A `belongs to`-like field that lazily loads candidates from a custom endpoint.
- [`Administrate::Field::ScopedBelongsTo`](https://github.com/XPBytes/administrate-field-scoped_belongs_to): :pencil: A `belongs_to` field that yields itself to the scope `lambda`.
- [`Administrate::Field::ScopedHasMany`](https://github.com/XPBytes/administrate-field-scoped_has_many): :pencil: A `has_many` field that yields itself to the scope `lambda`.
- [`Administrate::Field::TimeAgo`](https://github.com/XPBytes/administrate-field-time_ago): :pencil: A `date_time` field that shows its data as `time_ago` since.
## Development