Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "cars":
- [
- {
- "id":1,
- "name":"Car 1",
- "garage_name":"This one"
- },
- {
- "id":2,
- "name":"Car 2",
- "garage_name":"That one"
- },
- {
- "id":3,
- "name":"Car 3",
- "garage_name":"The other one"
- }
- ],
- paginator: "<paginator HTML here>",
- pagination_info: "<paginator info HTML here>"
- }
- collection @cars => :cars
- attributes :id, :name, :garage_name
- node :paginator do
- paginate(@cars, window: 1, outer_window: 2, remote: true)
- end
- node :pagination_info do
- page_entries_info(@cars)
- end
Add Comment
Please, Sign In to add comment