1
get '/watch/:id' do |id|
@results = Twitchtvst.all(:fields => [:Twitchtv ],
:conditions => { :user_id => "#{id}" }
)
#p @results.inspect
@results.each do |result|
puts result.id
end
erb :mystream
end
我得到這個錯誤消息immutable資源不能被延遲加載。我該如何解決?Ruby DataMapper :: ImmutableError
錯誤消息是:
DataMapper::ImmutableError at /watch/1
Immutable resource cannot be lazy loaded
什麼錯誤信息??? – Severin
不可變的資源不能被延遲加載 – user2945872