On Tuesday, 9 February 2016 12:20:37 UTC-6, Ankit Raj wrote:
>
> Hello geeks,
>
> Help me in solving following error.
>
>
> No route matches {:action=>"create_banner_text", :controller=>"websites",
> :id=>nil} missing required keys: [:id]
>
> Detail is given on
> https://gist.github.com/aj07/794468a5f6f92ea63dfb
>
>
On line 48 of the template, you have:
create_banner_text_website_path(@website)
The error indicates that @website is nil, so the
create_banner_text_website_path route helper can't generate a URL.
You didn't show the controller code, but that's where I'd recommend you
start looking.
--Matt Jones
--
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/df428f4c-cdd4-4503-93b2-3ef24a25ed1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.