Search code examples
ruby-on-railsruby-on-rails-3webformsformtastic

Is there a way to disable default formtastic layout?


For one specific case I would like to render the form as a part of (for in-place editing). Is there a way in formtastic to disable the layout generated by .inputs / .buttons? Instead a

<fieldset> <ol> <li> 

i would like simply to wrap the fields in the

<td>

Is there a build-in way or any solution to this problem?


Solution

  • There's no built in way (yet) in Formtastic to change the mark-up. Either use CSS to tweak the ample mark-up hooks in place, or ditch Formtastic for this form and code your own way (like we used to).