You have not explained what is not happening that should happen. Do
you mean that the thumb does not display? Is the html correct (view
the html in the browser).
Check out my QUESTION again. ie Is the html correct?
It is always better to ask a specific question within the content of
the post. As I type this I cannot see the subject line on screen. I
have to scroll up to see it. Also the title says "image not
displaying in paperclip". That is ambiguous. It could be that it is
displaying the wrong image, or no image at all. Or possibly a run time
error is displayed.
Finally, the best way to get help is not to SHOUT at those who are
spending their time trying to help.
Absolutely finally, don't forget to answer my question - is the html correct?
Check out my QUESTION again. ie Is the html correct?
It is always better to ask a specific question within the content of
the post. As I type this I cannot see the subject line on screen. I
have to scroll up to see it. Also the title says "image not
displaying in paperclip". That is ambiguous. It could be that it is
displaying the wrong image, or no image at all. Or possibly a run time
error is displayed.
Finally, the best way to get help is not to SHOUT at those who are
spending their time trying to help.
Absolutely finally, don't forget to answer my question - is the html
correct?
Colin
Yes, and once you said only post those part of code which is incorrect
so there's no point in asking about html as m sure about that validation
part is incorrect(i have done a lot of google search) when i hit submit
then in place of image i'm getting image name like "example image"
I don't understand what you mean by getting that message when you hit
submit. I thought the problem with displaying the image. What
exactly is the question you are asking? Do you think the upload is
failing? I presume you have looked in development.log to see if there
were any errors there.
Finally, the best way to get help is not to SHOUT at those who are
then in place of image i'm getting image name like "example image"
I don't understand what you mean by getting that message when you hit
submit. I thought the problem with displaying the image. What
exactly is the question you are asking? Do you think the upload is
failing? I presume you have looked in development.log to see if there
were any errors there.
Colin
i have made a diff show.html.erb that after i hit submit will redirect
me to show file in which i am getting the name of image instead of
image. earlier i was getting error or imagemagick but after some google
search i found removing styles will do but now i am only getting the
name of image(and yea i have checked log file for errors NO ERROR) and i
have checked via console too the image is getting stored but not
displaying, image is getting stored in public images . .
So, if I understand correctly, you have some erb in the view that
should show an image, but in fact it just shows the name. In your
situation the first thing I would do is to look at the html to see
what html the image_tag is generating. For some reason you don't seem
to want to do that.
tried this is on my frnds system and everything works fine on his system
so i'm sure there's nothing wrong in my application but don't know why
image is not coming up
I just cannot understand why you don't want to look at the html. I
cannot see how you can move forward without that. It is trivially
easy to do.
Colin
I just don't know now that how can i make you understand
"tried this is on my frnds system and everything works fine on his
system
Don't do skype.
Just explain why you cannot post the html.
Does it even display the page containing your image_tag, is that the problem?
If so then post the section of development.log showing the submit and response.
Answer 3:-
Started GET "/books/new" for 127.0.0.1 at 2015-04-07 11:51:02 +0530
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT
"schema_migrations".* FROM "schema_migrations"[0m
Processing by BooksController#new as HTML
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.7ms)