Rails calling action from view
Hopefully have a simple question here but I cannot for the life of me seem to find the answer. Just started working with RoR but came from ASP MVC before. I am having an issue rendering partial views whose local variables are not necessarily tied to the variables of the main view. For instance, with a blog I am trying to render a sidebar that will link to the archive. def sidebar @blog_posts = Blog.all(:select => "created_at") @post_months = @blog_posts.group_by { |m| m.created_at.beginning_of_month } end The partial view _sidebar is as follows: <div class="archives"> <h4>Blog Archive</h4> <%