resolve/refinerycms — Issue #1193: dashboard error with new blog post
Author: dmoose
Created: 2011-12-22 07:32:24+00:00
State: open

I created a new edge install and enabled the blog. I can create a
post, but when I go to the dashboard I get the following error.

NoMethodError in Refinery/admin/dashboard#index

Showing /Users/jeff/.rvm/gems/ruby-1.9.2-p290/bundler/gems/refinerycms-
f7a58ca392c9/dashboard/app/views/refinery/admin/dashboard/
_recent_activity.html.erb where line #3 raised:

undefined method `edit_refinery_blog_posts_admin_blog_post_path' for
#

Extracted source (around line #3):

1:

2:

<%= t('.latest_activity') %>

3: <% if (activity = @recent_activity.collect{|a|
activity_message_for(a)}.reject(&:blank?)).present? %>
4:

5: <% activity.each do |message| %>
6:
'>

Rake routes leads me to believe that it should be
'edit_refinery_admin_blog_post_path'.

I believe that it may have been the following that broke this.

link_to t('.latest_activity_message',
:what => record.send(activity.title),
:kind => record.class.model_name.human,
:action => t("with_article \"#{article}\"", :scope
=> "refinery.#{action}")
).downcase.capitalize,
eval("main_app.#{activity.url}(#{activity.nesting("record")}record)")

in dashboard_helper.rb about 22 hours ago Fixed activity selection
for plugins with multiple activities [Ruben Sierra]

I'm not sure what the intent of the
change was, but I hope this narrows it down enough that someone more
familiar can find it.