You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting Missing partial posts/_post with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :slim, :haml, :jbuilder]}. Searched in: When I click on hashtag
def render_hashtaggable(hashtaggable)
klass = hashtaggable.class.to_s.underscore
view_dirname = klass.pluralize
partial = klass
render "#{view_dirname}/#{partial}", {klass.to_sym => hashtaggable}
end
end
render "#{view_dirname}/#{partial}", {klass.to_sym => hashtaggable} is the line that's searching for the missing partial _post.
Maybe, you can look into this error to see why redirecting to the hashtags show views aren't working properly.
The text was updated successfully, but these errors were encountered:
It's looking inside of the partial, only to find the user object, but it's not rendering without the ID of the user. Fix?
ActionView::Template::Error (undefined method `user' for nil:NilClass):
Getting Missing partial posts/_post with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :slim, :haml, :jbuilder]}. Searched in: When I click on hashtag
def render_hashtaggable(hashtaggable)
klass = hashtaggable.class.to_s.underscore
view_dirname = klass.pluralize
partial = klass
render "#{view_dirname}/#{partial}", {klass.to_sym => hashtaggable}
end
end
render "#{view_dirname}/#{partial}", {klass.to_sym => hashtaggable} is the line that's searching for the missing partial _post.
Maybe, you can look into this error to see why redirecting to the hashtags show views aren't working properly.
The text was updated successfully, but these errors were encountered: