Displaying 1 result from an estimated 1 matches for "pictureparam".
2006 Mar 18
2
Need help with my view populating rows
...icationController
before_filter :login_required, :except => [ :list, :index ]
def index
end
def new
@project = Project.new
@picture = Picture.new
end
def create
@project = Project.new(params[:project])
if @project.save then
(params[:pictures] || []).each { |pictureParam|
@project.pictures.create(pictureParam)
}
@project.pictures.create(params[:picture]) if params[:picture]
end
render :action => ''new''
end
def list
@project_pages, @projects = paginate(:projects, :order => "date ASC"...