2

I want to generate a selection box that depends on the user input. I am now thinking of using a partial form to achieve it. However, is it possible to make use of simple_form to generate some dynamic fields while I can skip creating "form tag"?

Adam Aiken
  • 418
  • 7
  • 18
  • If I get it right you want to do something like: 'user types into a text field -> then a selection box will be generated based on what user entered -> then you want this selection_box be generated using simple_form_for? – Jay-Ar Polidario Aug 21 '15 at 09:25
  • If that so, then you were asking how to use simple_form_for versus form_tag in such a way that simple_form_for expects a resource inputted like <%= simple_form_for @user ... %> compared with <%= form_tag url %> because your form doesn't really have a resource to be passed in simple_form? – Jay-Ar Polidario Aug 21 '15 at 09:30
  • Exactly, this is what I want to ask. – Adam Aiken Aug 24 '15 at 06:11
  • This may help you: http://stackoverflow.com/questions/5181143/simpleform-without-for-non-model-form – Jay-Ar Polidario Aug 24 '15 at 08:30

0 Answers0