Sha256: 1aeccd9a6f86a2b2a283a6bb6ce9a915aab1d72136e61a73114b9f57dc846e81

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

# Rails::Livestamp

The livestamp will update automatically as time goes by. ISO 8601 timestamps are also supported. 

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'rails-livestamp'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rails-livestamp

## Usage

No extra JavaScript required! Just use a <span> with the data-livestamp attribute set to the desired Unix timestamp (in seconds), like this:

```ruby
You discovered rails-livestamp <span data-livestamp="#{Time.now.to_i}"></span>.
```

And you will see something like this:

```ruby
You discovered rails-livestamp a minutes ago. 
```

Wait half a minute - the livestamp will update automatically.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-livestamp-1.1.2 README.md