First of all I watched [Railscast #196](http://railscasts.com/episodes/196-nested-model-form-part-1) and [Railscast #197](http://railscasts.com/episodes/197-nested-model-form-part-2).

I have also read [this](https://stackoverflow.com/questions/5746006/has-many-through-nested-form-that-can-build-multiply-insctance) and a lot of other similar questions.

Im getting the following error:

`Missing partial profils/compagny_fields, application/compagny_fields with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
 * "/home/me/www/Myapp/app/views"`

It seems that its not a partial problem cause i can see the `puts` from my partial.

So on my models i have:

> 
> CompagnyModel: belongs\_to :profil`
> 
> 
> ProfilModel: has\_many :compagnies, accepts\_nested\_attributes\_for :compagnies
> 
> 
> 

In my View I have:

> 
> 
> > 
> > 
> >  <%= p.label :firstname, "firstname" %> 
> >  <%= p.text\_field :firstname %>
> >  
> > 
> > 
> > 
> >  <%= p.label :lastname, "lastname" %> 
> >  <%= p.text\_field :lastname %>
> >  
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> ```
> <%= p.fields_for :compagnies do |n| %>
> 
> ```
> 
> 
> > 
> > 
> > ```
> >    <%= render 'compagnies_fields', :c => n %>
> > <% end %>
> > 
> > ```
> > 
> > 
> 
> 
> 
> ```
> <%= link_to_add_fields "Add Compagny", p, :compagnies %> 
> <% end %>
> 
> ```
> 
> <%= f.submit "save"
>  %>
> 
> 
> 

Finally here is my partial:

```
<p class="fields">
  <%= c.label :name, "Compagny"%><br />
  <%= c.text_field :name %><br />
  <%= link_to_remove_fields "remove", c %><br />
  <% puts "-----!-!-!-!-!-!-!-!-DEBUG-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!------" %>   
</p>

```