Skip to content

Instantly share code, notes, and snippets.

@djpate
Created February 1, 2013 22:29
Show Gist options
  • Save djpate/4694609 to your computer and use it in GitHub Desktop.
Save djpate/4694609 to your computer and use it in GitHub Desktop.
POC for form integration
def input(*args)
options = args.first
if options[:name] && @entity.send(options[:name])
options[:value] = @entity.send(options[:name])
end
super
end
@djpate
Copy link
Author

djpate commented Feb 1, 2013

input :name => :title

@deepthawtz
Copy link

I like it, so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment