The object you''re using to render the form is nil.
--
Dheeraj Kumar
On Tuesday 16 July 2013 at 2:34 AM, Giannakis P. wrote:
> 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
(mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org).
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
(mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org).
> 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.
>
>
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/17920AEBA9124C1BAF005F39637C1A78%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.