Displaying 1 result from an estimated 1 matches for "post_with_imag".
Did you mean:
post_with_image
2011 May 19
0
Unable to find the image path via file system using the paperclip plugin through the get method
...opriate image upload. This
directory name is coined with the an id, uniquely identifying each image
within it. The actual directory structure is like this:-
rail_app_directory/photo/id_number/orginal/photo_filename.appropriate_file_format
A more direct e.g. to the general structure posted above:-
post_with_image/photo/1/original/sunset.jpeg
Please find code for controller below just in case:-
class PostsController < ApplicationController
# GET /posts
# GET /posts.xml
def index
@posts = Post.find(:all)
respond_to do |format|
format.html # index.html.er...