Hello Guys :)
I'm fairly new to Rails and a problem keeps bugging me for days now.

I'mt Trying to render a Partial from my App/view/pins folder to my
app/view/layout folder (My menu).

Basically im trying to render my _form.html.erb to a Modal which is
triggered with a button on my Menu.

Im using Bootstrap.

Every time i give my modal the code:

<%= render 'pins/form' %>

i'm getting:
NoMethodError in Pins#index
undefined method `model_name' for NilClass:Class

I searched A LOT and EVERYWHERE but couldn't fix it..
Can anybody Help me?

(Git repo-> https://github.com/Theminijohn/Amphitryon)

-- 
Posted via http://www.ruby-forum.com/.

-- 
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/2798c4eaa8a71eff6b1ae4fbd2fffdbb%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to