views:

27

answers:

1

Normally, in the new.html.erb of a model(say Product), we render the partial _form.html.erb for the form.
The _form.html.erb is located in the /app/views/products/_form.html.erb.
Is there a way i can render another _form present in the Rails root directory in an other directory...e.g say /app/views/users/_form1.html.erb.

Is there any way to do so????
Or simply pass the absolute url to the render partial.

+1  A: 

Like this.

render :partial => "users/form1"
yjerem
Thanks. It works.
Silver Spoon
Great! and you're welcome.
yjerem