Add this line to your application's Gemfile:
gem 'arena'
And then execute:
$ bundle
Or install it yourself as:
$ gem install arena
Register an application at https://dev.are.na.
Configure for personal use (optional; be aware this grants access to everything your account has access to)
Arena.configure do |config|
config.access_token = 'XXXXXXXXXXXXX'
end
@channel = Arena.channel(params[:id])
<% @channel.contents.each do |connectable| %>
<%= connectable.title %>
<% if connectable.has_image? %>
<img src="<%= connectable.image.display.url %>" alt="<%= connectable.title %>" />
<% end %>
<% end %>