Hey Guys i'm New to Rails (3 weeks now) and i'm Trying to render a Partial 
from my *app/views/pins *to my *layouts/_header *(My Menu) in a Modal. Im 
Using Bootstrap.
So i render it with <%= render *"pins/form"* %> but i get an undefined 
method `model_name' for NilClass:Class.]
My Modal Looks Like This :

<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" 
aria-labelledby="myModalLabel" aria-hidden="true"> <div 
class="modal-header"> <button type="button" class="close" 
data-dismiss="modal" aria-hidden="true">×</button> <h3 
id="myModalLabel">Modal header</h3> </div> <div class="modal-body"> <%= 
render 'pins/form' %> </div> <div class="modal-footer"> <button class="btn" 
data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn 
btn-primary">Save changes</button> </div> </div>

I searched 2 days now for a possible solution but found nothing :(
Can anybody help me ?

Thanks, 
Johnny

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c728c239-fd93-4b78-8e6f-dce1ed076f63%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to