-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering a partial #26
Comments
I was able to get partials working using something like: render :partial => "#{role}/user/user_links",
:locals => { :user => user } I get a ActionView::Template::Error:
wrong number of arguments (0 for 1..2) |
I think I fixed it in the meantime by defining my own controller in my own namespace... I'm off the project now though :) |
I'm having a similar issue on Rails 4. Partials referenced from the template are being resolved to |
I had the same issue, mainly concerning polymorphic records rendering. Solved it like this: |
Hi there,
thanks for your work!
I'd like it to be possible to render a partial easily through just
render my_object
- which then callsto_partial_path
sets the right locals and renders it.When I try it, I get an error because it tries to name space it as
render_anywhere
which of course does not work, e.g.:Maybe it's already possible and I'm just missing something.
Thank you!
Tobi
The text was updated successfully, but these errors were encountered: