0

In my application , in some pages for the user images it showing like

<img title="myname" src="/appname/datas/thumb50/missing.png" class="user_profile_image" alt="MYNAME">

which shows a 404 error.. I am very new to ROR.. Dont know how to rectify the error.

koopajah
  • 23,792
  • 9
  • 78
  • 104
useranon
  • 29,318
  • 31
  • 98
  • 146

1 Answers1

0

This:

"/appname/datas/thumb50/missing.png"

Should surely be the relative path to your public directory or actual path:

"/datas/thumb50/missing.png" 

or

"http://www.domain.com/datas/thumb50/missing.png"

These assumes the directory 'datas' lies in your public path.

mark
  • 10,316
  • 6
  • 37
  • 58
  • @Aruna, you *must* get a good rails book! http://stackoverflow.com/questions/55574/learning-ruby-on-rails – Zabba Jan 06 '11 at 09:17