team-formalist / formalist-rb

Flexible form builder
MIT License
22 stars 4 forks source link

Data for rendering entities isn’t referenced correctly #51

Open makenosound opened 7 years ago

makenosound commented 7 years ago

This issue https://github.com/icelab/formalist-standard-react/issues/86 is caused by the hash of data in the renderer being strings rather than symbols:

def entity_link(data, children)
  html_tag(:a, href: data[:url]) do
    children.join
  end
end

The data blob there is actually like this:

{ "url" => "foo"}
makenosound commented 7 years ago

Have added a temporary fix for this in the compiler: https://github.com/icelab/formalist/commit/1b3be7617d76e602be381760d7d7c05ca3375c77