2015-09-25 06:32:59 +00:00
|
|
|
class SpacesController < ApplicationController
|
|
|
|
def index
|
2015-09-25 07:21:32 +00:00
|
|
|
buildings = Building.all.collect do |building|
|
|
|
|
{
|
|
|
|
"building-title" => building.title,
|
|
|
|
"building-image" => building.image.url,
|
|
|
|
"alt-title" => building.title
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2015-09-25 06:32:59 +00:00
|
|
|
{
|
2015-09-25 07:21:32 +00:00
|
|
|
"buildings" => buildings,
|
2015-09-25 06:32:59 +00:00
|
|
|
"extra" => {
|
2015-09-25 07:21:32 +00:00
|
|
|
|
2015-09-25 06:32:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|