Skip to content

Instantly share code, notes, and snippets.

@bensie bensie/formotion.rb
Created Jun 18, 2013

What would you like to do?
Formotion dynamic select_one
@form ={
sections: [
select_one: true,
rows: value["choices"].map do |choice|
title: choice["description"],
key: choice["description"],
value: value["current"] == choice["description"],
type: :check
rows: [{
title: "Save",
type: :submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.