Hi Steve, > Steve Russo wrote: >> For the last week and a half I've really struggled trying to do >> something I assumed would be pretty straight forward. However I continue >> to find road blocks regardless of the approach I take. No one on the web >> seems to have covered this or run into this problem...
Didn't see your origiinal post. Sorry. This is straight forward. >> Basically I want a drop down field to offer a certain sets of form_for >> fields I have stored in different partials. Each partial contain >> certains fields for the form. Based on the selection in the drop down, >> teh approparaiet partial/fields will be displayed on the page. Put an observe field on the select input that calls a method in your controller that renders the desired partial. Easiest thing to do is put the (set of) empty div(s) in the form so you can use page.replace_html. If you want to get rid of the select when the partial is displayed, put it inside the div that will have its inner_html replaced. You'll need to add named routes to your UI-manipulating methods. Some, like Marnen, will tell you not to use RJS because it puts inline js in the page source. Do as you like. I'm a Rails developer. I work primarily in Rails code, not in page source, so it matters not one bit to me what Rails generates as long as it validates. When I need to write custom js, I do and I do it unobtrusively, but I use Rails helpers whenever they'll do. YMMV. Best regards, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

