0.0
No commit activity in last 3 years
No release in over 3 years
HTTPong for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.1.0
>= 3.0.0
 Project Readme

Elpong for Rails

This library is meant for use with Elpong for Javascript

You can put a scheme.json in the /config folder, and that will be used as the default scheme.

gem 'elpong-rails'
$ rails generate elpong
class ApplicationController < ActionController::Base
  helper Elpong::Rails::Helper
  # this provides methods like elpong_scheme and elpong_collection
end
<head>
  <%= elpong_scheme 'animal-farm' %>
  <%= elpong_collection 'pigs', path: '/api/v1/pigs/index', locals: {pigs: @pigs} %>
  <%= elpong_element 'user', path: '/api/v1/users/me', attributes: {'current-user': true} %>
</head>