On Sat, Jul 24, 2010 at 9:26 AM, Jan Kadera <[email protected]> wrote:
> On the other hand the absolute path is recognized by starting with the only > root of the whole computer filesystem, like "/" or "C:\" No, "absolute path" in terms of a web app means a path starting with a "/" that indicates the base of your *web application's root*. It's usually better to use absolute paths, since the actual context of any given page or page fragment may not be obvious. > Sir, I may be an idiot, but it doesn't work. > I have pictures in public/pic > the picture filename is darkKnight_wide.jpg > and I'm reffering to it like this: > <body background=<%= image_tag "darkKnight_wide.jpg" %>> Of course it doesn't work -- you ignored what you were told, which was to put it in /public/images, which is the path an image_tag will create for it. It's a convention. Rails has lots of them, and learning and adhering to them will make this all much easier :-) > and I know nothing abou html, but there is no way that the 'higher power' > translating that ruby babbling And if you think this whole thing is "ruby babbling" -- why are you even bothering? -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

