For example, the address is "0x007f6f0954e820" string, how to get actual object?
I write these: in GymsController
class GymsController < ApplicationController
@@gyms = Array.new
def private_page
...
cookies.permanent[:gyms] = JSON.generate(@@gyms << @page)
end
end
and in history.html.slim
- content_for :title, "History"
- breadcrumb :history
= stylesheet_link_tag 'application'
.outer
main.privacy-index
.content-wrapper
h1.headline2 History一覧
- JSON.parse(cookies.permanent[:gyms]).reverse.each do |value|
= (value.to_s.split(":").last)[0..-2].inspect
br
(value.to_s.split(":").last)[0..-2].inspect
is "0x007f6f2b587b30"
But I wanna get real object, and do like value.title
, value.images