search for: total_upload

Displaying 1 result from an estimated 1 matches for "total_upload".

Did you mean: total_uploads
2011 May 06
3
Rails 3 Routing problems
...hoto</h3> <%= render "upload/form", :parent => @user, :upload => user.uploads.new %> ##class UploadsController < ApplicationController def index @uploads = Upload.all @upload = Upload.new end ##def show @upload = @parent.uploads.find(params[:id]) @total_uploads = @parent.uploads.find(:all, :conditions => { :user_id => @upload.user.id}) end #views/uploads/index.html.erb <% unless @uploads.blank? %> <% @uploads.each do |upload| %> <%= render :partial => ''upload'', :locals => {:collection => @upload.t...