Ask A Question

Notifications

You’re not receiving notifications from this thread.

Missing partial error but lookup_context find it.

Louis-Frédéric Schefer asked in Rails

Hi everyone,
I'm get missing partial error even lookup_context find it.

my partial is in view/unicorns and partials name is _unicorn_card.html.erb

here is my controller code:

respond_to do |format|
      format.html
      format.text { render partial: 'unicorns/unicorn_card', locals: {unicorns: @unicorns}, format: [:html] rescue redirect_to unicorns_path}
    end

It must be a pretty dumb but i don't find it, any clue ?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,584+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.