“What do you mean by ‘there are no relative paths in rails’ ?”
As I understand the difference, there is some point in the computer directory tree, where is said I’m working, for example
now if I want to link something inside of that directory, you just type name of the file, because some kind of magic or more than human power will know it should first look there.
On the other hand the absolute path is recognized by starting with the only root of the whole computer filesystem, like “/” or “C:”
…so if I have to use “/” in the pseudo-relative path like this, then I guess I’m using absolute path from the relative point described above, which I absolutely don’t get.
And if it really is either of those, I can’t imagine usage of the other one.
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:
and I know nothing abou html, but there is no way that the 'higher power' translating that ruby babbling into html can know which subdirectory in the public directory it should try.
I'm trying to follow this tutorial to create a password checker in my app:
I followed until like two thirds of article and crashed on this one:
"Create an entry in the users table, start the server, and you'll find that you can log in from *[http://localhost:3000/user/login](http://localhost:3000/user/login)*, and view your account information from *http:// localhost:3000/user/my_account*. "
a created a login name and password in the correct database table, but, when I type in to my browser myIP:3000/user/login it's giving an error message saying that it cant apply something on .
I almost completely don't know what exactly am I doing, but I looked into the database and found the password there...the exact password, which is I would say lame, isn't it? There should be hash or something (not ruby-hash, but you probably know).
Because of that I'd say that this tutorial is kind of crapy and I wanted to ask anyone if you know about any better, I'd love to read it.