I have a problem I am hoping someone can help me out with. I am trying
to import a csv file and it goes smoothly while trying to work in my
development environment(radrails) but when deploying it with instant
rails I get the following message:
Errno::ENOENT in Sales headerController#import
No such file or directory - Default.pmx.csv
Here is the html code
here is the rails code
CSV.open(params[‘importfile’], ‘r’) do |row|
if(@recipe = RecipeHeader.find(:first,:conditions=>['plu = ?
SalesDetail.find(:first,:conditions=>[‘recipe_header_id = ? and
sales_header_id = ?’,@recipe.id,params[:id]]))
@detail.quantity = row
redirect_to :action => ‘edit’, :id=>params[:id]
I am totally stumped so any help would be appreciated!!!