hello folks
  Im trying to populate a text_field with a simple_fields_for and it
works as expected for the collection of data but at the end i always end
up with a empty text_field where i could input data, how do not display
the empty text_field. Here is a stub of what im trying to do in haml

  = f.simple_fields_for :favorite_places do |fav|
    = fav.label :state_name
    = fav.text_field :favorite_state, :as => :string


 which shows in html like so

 state name
 Chicago

 state name
 Denver

 state name
 --> empty text_field here to input some state

ive tried checking not sure what to check such as

 - if :favorite_places.empty? || :favorite_places.blank?  etc etc

any help would be appreciated

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/34bb14bf53e21e4422f7019a2a3e3eac%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to