On 15 July 2013 21:47, Giannakis Prime <[email protected]> wrote: > 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.]
If you look through the call stack that should have been displayed in the server window then you should find it referencing one of your lines of code. There you will find which object is nil. Colin -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv%2BpHAqqC7sQL%2B3mekDw7VHaS8mmN91B6MV8qRaawF1nw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

