I’d like to be able to do this in Rails:
render [:search, @video]
So it looks for the search/_video partial not the _videos/video one.
-
-
Replying to @olivierlacan
@olivierlacan Seems reasonable. I don't like the magic array though. Maybe `render@video, context: :search`2 replies 2 retweets 4 likes
Replying to @olivierlacan
@olivierlacan Namespace is better
4:37 AM - 31 Mar 2016
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.