added buildings data for frontentd
This commit is contained in:
parent
4e630a135f
commit
0489045aee
|
@ -1,6 +1,15 @@
|
||||||
class SpacesController < ApplicationController
|
class SpacesController < ApplicationController
|
||||||
def index
|
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" => {
|
"extra" => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue