i am trying to use form data outside of just form elements. i want to show form data as normal text.
controller:
@addresses = ['Billing', 'Shipping']
@addresses.each do |a|
addresses.build(:address_type => a)
end
then within my form...for example...(haml)
- fields_for :addresses do |a|
a.address_type #to just render 'Billing', etc.
or...
- fields_for :addresses do |a|
%div{:class => a.address_type
would i need to make a custom formbuilder method? or is there an existing way