For me to keep my application DRY i need to be able to have partials that can be accessed from two views. How is would I go about doing this?
render :partial => "folder/partial_file" That should be enough.
For me to keep my application DRY i need to be able to have partials that can be accessed from two views. How is would I go about doing this?
render :partial => "folder/partial_file" That should be enough.
Further, you should strive to make all your partials accessible like this, by using :locals in the render and in the partial expecting variable, not @variable, if that makes sense.
Cheers