added buildings data for frontentd
This commit is contained in:
parent
4e630a135f
commit
0489045aee
|
@ -1,8 +1,17 @@
|
|||
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" => {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue