Rails 3: How to render an action from another controller's view -


i'm trying call action different controller's view:

controller countries has action called selectbox generates html selectbox countries partial.
controller customers has action called new generates html form customers attributes. want insert selectbox countries#selectbox in form.

what right way achieve this?

for doing, extracting code helper method right way it. however, if still want use action another, official rails plugin can use:

https://github.com/rails/render_component


Comments