How to link_to a show page from another MVC?
问题 I get this error when I pull up http://0.0.0.0:3000/activities: ActiveRecord::RecordNotFound in ActivitiesController#index Couldn't find Valuation with 'id'= Line: @valuation = Valuation.find(params[:id]) activities_controller def index @activities = Activity.order("created_at desc").paginate(:page => params[:page]) @valuation = Valuation.find(params[:id]) end activities/index <% @activities.each do |activity| %> <%= render "activities/#{activity.trackable_type.underscore}/#{activity.action}"