search for: lisitng_id

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

2010 Jul 11
0
Attachement_fu error when updating existing photos
...ails code: def edit @photo = Photo.find(params[:id]) end def update @photo = Photo.find(params[:id]) if @photo.update_attributes(params[:photo]) flash[:notice] = ''Photo was successfully updated.'' redirect_to(''/listingHome/active/edit/'' + @photo.lisitng_id) end end Method failing in attachement_fu # Gets the full path to the filename in this format: # # # This assumes a model name like MyModel # # public/#{table_name} is the default filesystem path # RAILS_ROOT/public/my_models/5/blah.jpg # # Overwrite this method in your model to customize...