added buildings data for frontentd
This commit is contained in:
parent
4e630a135f
commit
0489045aee
|
@ -1,6 +1,15 @@
|
|||
class SpacesController < ApplicationController
|
||||
def index
|
||||
buildings = Building.all.collect do |building|
|
||||
{
|
||||
"building-title" => building.title,
|
||||
"building-image" => building.image.url,
|
||||
"alt-title" => building.title
|
||||
}
|
||||
end
|
||||
|
||||
{
|
||||
"buildings" => buildings,
|
||||
"extra" => {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue