Deep beginning

4 views
Skip to first unread message

Jan Kadera

unread,
Jul 20, 2010, 6:03:02 PM7/20/10
to rubyonra...@googlegroups.com
Hey guys,
it'll be kinda silly question, but I was working for two years on my bachelor's thesis using RoR...but I have never found out, how to do that when I type in the browser the address and port, there will be a homepage shown...is there some easy way?

Thanks in advance
Jan Kadera

thereddestruby

unread,
Jul 20, 2010, 6:07:56 PM7/20/10
to Ruby on Rails: Talk
You mean setting your routes so that you can tell Rails where your
homepage is at when you preview using localhost?

In rails 3, do something like this:

# Home Page Route
root :to => "site#home"

# Site Routes
match '/', :to => "site#home"

So when you go to http://localhost:3000, rails will route to your
homepage.

Jan Kadera

unread,
Jul 20, 2010, 6:21:08 PM7/20/10
to rubyonra...@googlegroups.com
I've got rails 2.1 unfortunately.
Isn't there any more peaceful way to do it without declaring war to half of the application by changing routing?

btw, my app is available on the address tinyurl.com/skurt, please feel free to check it out.
I have made there two controllers: home and Rolldance (rolldance is from some kind of turorial)
home have bunch of actions, but there is view only for action wow
rolldance have actions both with views index and o_nas
What I'm trying to do is simply access those pages and I'm totally unsuccessful :(
Jan Kadera


2010/7/21 thereddestruby <ulisesram...@gmail.com>
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Hassan Schroeder

unread,
Jul 20, 2010, 7:06:40 PM7/20/10
to rubyonra...@googlegroups.com
On Tue, Jul 20, 2010 at 3:21 PM, Jan Kadera <honza....@gmail.com> wrote:

> Isn't there any more peaceful way to do it without declaring war to half of
> the application by changing routing?

What *are* you talking about?

You use routing to match URLs to the content you want to serve.

If you're not getting the results you expect, run `rake routes` to see
what's actually configured.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan

josh...@gmail.com

unread,
Jul 20, 2010, 7:16:23 PM7/20/10
to Ruby on Rails: Talk
http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-routes.htm

http://guides.rubyonrails.org/getting_started.html see section 4.2
Although its for 2.3, 2.1 looks to be similar.



On Jul 20, 5:21 pm, Jan Kadera <honza.kad...@gmail.com> wrote:
> I've got rails 2.1 unfortunately.
> Isn't there any more peaceful way to do it without declaring war to half of
> the application by changing routing?
>
> btw, my app is available on the address tinyurl.com/skurt, please feel free
> to check it out.
> I have made there two controllers: home and Rolldance (rolldance is from
> some kind of turorial)
> home have bunch of actions, but there is view only for action wow
> rolldance have actions both with views index and o_nas
> What I'm trying to do is simply access those pages and I'm totally
> unsuccessful :(
> Jan Kadera
>
> 2010/7/21 thereddestruby <ulisesramirezro...@gmail.com>
>
> > You mean setting your routes so that you can tell Rails where your
> > homepage is at when you preview using localhost?
>
> > In rails 3, do something like this:
>
> >  # Home Page Route
> >  root :to => "site#home"
>
> >  # Site Routes
> >  match '/', :to => "site#home"
>
> > So when you go tohttp://localhost:3000, rails will route to your
> > homepage.
>
> > On Jul 20, 3:03 pm, Jan Kadera <honza.kad...@gmail.com> wrote:
> > > Hey guys,
> > > it'll be kinda silly question, but I was working for two years on my
> > > bachelor's thesis using RoR...but I have never found out, how to do that
> > > when I type in the browser the address and port, there will be a homepage
> > > shown...is there some easy way?
>
> > > Thanks in advance
> > > Jan Kadera
>
> > --
> > 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 rubyonra...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-ta...@googlegroups.com<rubyonrails-talk%2Bunsu...@googlegroups.com>
> > .

Jan Kadera

unread,
Jul 23, 2010, 7:45:35 PM7/23/10
to rubyonra...@googlegroups.com
"You use routing to match URLs to the content you want to serve."
Are you telling me, that the default routing setting do not work like this:
my ip: 1.2.3.4
my port: 3000
controller name: c
action name: a
this implies the address http://1.2.3.4:3000/c/a.html
???

I'm asking, because I believe it work like that which means, when I start to change it, I'll mess the whole app up.

Jan.



2010/7/21 Hassan Schroeder <hassan.s...@gmail.com>

--

Jan Kadera

unread,
Jul 23, 2010, 7:50:26 PM7/23/10
to rubyonra...@googlegroups.com
"If you're not getting the results you expect, run `rake routes` to see
what's actually configured."

skurt@pivnik:~/www/skurt$ rake routes
(in /home/skurt/www/skurt)
  /:controller/:action/:id        
  /:controller/:action/:id.:format

Now I see I really don't want to mess with it :(

Jan



2010/7/24 Jan Kadera <honza....@gmail.com>

Jan Kadera

unread,
Jul 23, 2010, 8:22:02 PM7/23/10
to rubyonra...@googlegroups.com
Well, after a while trying I found a way to do it right. The first time, I created just controller
script/generate controller home
and then created actions by editing the file app/controllers/home_controller like this:
def action1
end
def action2
end
...
and for every action I created a file like this
app/views/home/action.html.erb
and it didn't work (that's the point where you were suggesting routing)

but the only thing I needed was to destroy all the work done and use the command
script/generate controller home action1 action2...

and voi'la myIP:3000/home works now :)

BUT! What I'm trying to figure out now is addressing inside of the app. I'm trying to set up a background for the page but the relative path starting from the route of the app doesn't work and unfortunately the absolute path doesn't work either.
So where is the root of the relative path?

Hassan Schroeder

unread,
Jul 23, 2010, 9:21:12 PM7/23/10
to rubyonra...@googlegroups.com
On Fri, Jul 23, 2010 at 5:22 PM, Jan Kadera <honza....@gmail.com> wrote:
> Well, after a while trying I found a way to do it right. The first time, I
> created just controller
>
> and it didn't work (that's the point where you were suggesting routing)
>
> but the only thing I needed was to destroy all the work done and use the
> command
> script/generate controller home action1 action2...
>
> and voi'la myIP:3000/home works now :)

because the routes.rb file has been updated, which you could have
easily done manually :-)

> BUT! What I'm trying to figure out now is addressing inside of the app. I'm
> trying to set up a background for the page but the relative path starting
> from the route of the app doesn't work and unfortunately the absolute path
> doesn't work either.
> So where is the root of the relative path?

Static resources are typically served from /public/* so e.g. an image in
{RAILS_ROOT}/public/images/foo.png would be accessed by the URL
http://hostname:port/images/foo.png

HTH,

Jan Kadera

unread,
Jul 24, 2010, 2:54:05 AM7/24/10
to rubyonra...@googlegroups.com
Thanks a lot :)
Jan


2010/7/24 Hassan Schroeder <hassan.s...@gmail.com>

Jan Kadera

unread,
Jul 24, 2010, 3:05:57 AM7/24/10
to rubyonra...@googlegroups.com
In the tutorial here: http://guides.rubyonrails.org/layouts_and_rendering.html
a have found a problem.
There is stated: "By default, the file is rendered without using the current layout. If you want Rails to put the file into the current layout, you need to add the :layout => true option."
....but where? I tried the view file and the controller file and neither doesn't work.

Jan



2010/7/24 Jan Kadera <honza....@gmail.com>
Thanks a lot :)

Jan Kadera

unread,
Jul 24, 2010, 4:06:08 AM7/24/10
to rubyonra...@googlegroups.com
Well, I figured now, that there is really no need to tell the controller to use the layout, it makes it by default, BUT...I'm still unable to set up the wallpaper. I moved the picture to the directory
public/pic/
and add the address pic/darkKnight_wide.jpg to the layout file.
But it only affected the index view file, in others there is still the same link for the background, but the background isn't shown.

Well, I figured this one out now also...apparently there is huge difference between those two strings:
/pic/picture.jpg
pic/picture.jpg
Which I guess means there are no relatives paths in rails, right?

Frederick Cheung

unread,
Jul 24, 2010, 4:49:17 AM7/24/10
to Ruby on Rails: Talk
On Jul 24, 9:06 am, Jan Kadera <honza.kad...@gmail.com> wrote:
>
> Well, I figured this one out now also...apparently there is huge difference
> between those two strings:
> /pic/picture.jpg
> pic/picture.jpg
> Which I guess means there are no relatives paths in rails, right?

Absolute and relative paths are indeed very different. This doesn't
have much to do with rails though - it's just the way that html
works.
What do you mean by 'there are no relative paths in rails' ?

Fred

cageface

unread,
Jul 24, 2010, 10:41:16 AM7/24/10
to Ruby on Rails: Talk
On Jul 24, 1:06 am, Jan Kadera <honza.kad...@gmail.com> wrote:
> Well, I figured this one out now also...apparently there is huge difference
> between those two strings:
> /pic/picture.jpg
> pic/picture.jpg
> Which I guess means there are no relatives paths in rails, right?

It's better to use the image_tag helper than code full paths to images
in your app. The convention is like this:

1. create an images subdirectory under public in your rails app
2. link to an image via the image_tag helper

So in your case you'd create public/images/picture.jpg and link to it
in a template like <%= image_tag "picture.jpg" %>.

--
miles

Jan Kadera

unread,
Jul 24, 2010, 12:26:30 PM7/24/10
to rubyonra...@googlegroups.com
To Frederick:

"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
/home/myusername/RubyApps/rails/default
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.



To cageface:
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" %>>
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.



To everyone:
I'm trying to follow this tutorial to create a password checker in my app:
http://www.devarticles.com/c/a/Ruby-on-Rails/Login-Systems-and-More-with-Ruby-on-Rails/
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, 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.

Regards
Jan



2010/7/24 cageface <mile...@gmail.com>

--

Jan Kadera

unread,
Jul 24, 2010, 12:33:35 PM7/24/10
to rubyonra...@googlegroups.com
cageface:
Oh, I get it now, this awesome trick works, but you have to set you app up EXACTLY, like it is said...I don't get those 'features'
but thanks.

Jan



2010/7/24 Jan Kadera <honza....@gmail.com>
To Frederick:

Frederick Cheung

unread,
Jul 24, 2010, 12:49:40 PM7/24/10
to Ruby on Rails: Talk
On Jul 24, 5:26 pm, Jan Kadera <honza.kad...@gmail.com> wrote:
> To Frederick:
> "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
> /home/myusername/RubyApps/rails/default
> 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.

Almost - you're looking at it from the point of view of your computer
whereas you need to be looking it at from the point of view of the
web browser & web server: / doesn't mean the root of your hard drive,
it means the root of your website, which for a rails app is
your_rails_app/public. Relative paths are relative to the page the
browser is currently sitting on, so if your browser is displaying
http://foo.com/blah then an image with path 'pics/logo.png' will
request http://foo.com/blah/pics/logo.png whereas '/pics/logo.png'
will request http://foo.com/pics/logo.png

Fred


Hassan Schroeder

unread,
Jul 24, 2010, 12:50:48 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 9:26 AM, Jan Kadera <honza....@gmail.com> 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?

Jan Kadera

unread,
Jul 24, 2010, 12:57:28 PM7/24/10
to rubyonra...@googlegroups.com
I have moved all pictures in the images directory and it works now for the pictures.
It unfortunately doesn't work for background, or I don't know how to throw it.

And one little question...how do I align pictures inserted into web like this? I can't google it.

Frederick Cheung

unread,
Jul 24, 2010, 12:56:38 PM7/24/10
to Ruby on Rails: Talk


On Jul 24, 5:26 pm, Jan Kadera <honza.kad...@gmail.com> wrote:
> 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.
>

That is indeed a bad way to do things. You might want to look at
authlogic which is what a lot of people use these days.
restful_authentication also used to be quite popular.

Fred

Hassan Schroeder

unread,
Jul 24, 2010, 1:02:56 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 9:57 AM, Jan Kadera <honza....@gmail.com> wrote:

> It unfortunately doesn't work for background, or I don't know how to throw
> it.

What exactly does that mean? How are you trying to set "background"?

> And one little question...how do I align pictures inserted into web like
> this? I can't google it.

You need to study basic HTML and CSS if you're going to be doing
web apps, I'm afraid. And I'm sure you can easily google up some
tutorials on those subjects :-)

Jan Kadera

unread,
Jul 24, 2010, 1:06:55 PM7/24/10
to rubyonra...@googlegroups.com
Frederick:
Thank you, it's much clearer. Unfortunately, since I work with files saved in app/... and the address equals public/... I cannot imagine any case to use relative path :/

Hassan.:
I figured it out, but from the example I really wasn't able to derive that I have to do it that and only that way exactly.
And I'm bothering for many reasons...you would probably consider the most interesting one that I don't want to use web spaces with advertisment (That of course I find one useful ruby webhosting)



2010/7/24 Frederick Cheung <frederic...@gmail.com>

--

Jan Kadera

unread,
Jul 24, 2010, 1:11:27 PM7/24/10
to rubyonra...@googlegroups.com
Fred:
Thank you, I'll take a look.

Hasan:
As I described earlier: <body background=<%= image_tag "darkKnight_wide.jpg" %>>
but since my mistake I moved pictures to the images dir...but this still doesn't work :(
And abou studiing html and css...I did, but I do not understand to articles about this stuff, so I learn stuff I need to do and I'm learning it backwards, it works for me.

Jan




2010/7/24 Hassan Schroeder <hassan.s...@gmail.com>
On Sat, Jul 24, 2010 at 9:57 AM, Jan Kadera <honza....@gmail.com> wrote:
--

Hassan Schroeder

unread,
Jul 24, 2010, 1:12:30 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 10:06 AM, Jan Kadera <honza....@gmail.com> wrote:

> And I'm bothering for many reasons...you would probably consider the most
> interesting one that I don't want to use web spaces with advertisment (That
> of course I find one useful ruby webhosting)

I have absolutely no idea what you mean by that, but good luck :-)

Hassan Schroeder

unread,
Jul 24, 2010, 1:18:21 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 10:11 AM, Jan Kadera <honza....@gmail.com> wrote:

> <body background=<%= image_tag "darkKnight_wide.jpg" %>>

The background attribute is deprecated -- you should really use CSS
for this.

> but since my mistake I moved pictures to the images dir...but this still
> doesn't work :(

Did you restart your server? What's `view source` show you as the
path? Are you using a tool like Firebug to examine why the request
isn't working?

> And abou studiing html and css...I did, but I do not understand to articles
> about this stuff, so I learn stuff I need to do and I'm learning it
> backwards, it works for me.

If you say so :-)

You might want to play around with some static HTML pages a bit to
get a better feel for how HTML and CSS work...

FWIW,

Jan Kadera

unread,
Jul 24, 2010, 1:18:27 PM7/24/10
to rubyonra...@googlegroups.com
I meant I was unable to find ruby webhosting, where could I try to build up web pages in ruby. Even If I found it, it would contain advertisment for being free. So this way I can build my own web on my own computer with ruby and without advertisment.

btw. the background ruby code generates this
<body background= <img alt="Darkknight_wide" src="/images/darkKnight_wide.jpg?1229174053" /> >
which is just weird :(

Jan.


2010/7/24 Hassan Schroeder <hassan.s...@gmail.com>
--

Patrick Robertson

unread,
Jul 24, 2010, 1:20:36 PM7/24/10
to rubyonra...@googlegroups.com

Hassan Schroeder

unread,
Jul 24, 2010, 1:26:55 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 10:18 AM, Jan Kadera <honza....@gmail.com> wrote:
> I meant I was unable to find ruby webhosting, where could I try to build up
> web pages in ruby. Even If I found it, it would contain advertisment for
> being free.

heroku.com has a minimal free plan that doesn't involve advertising,
and it's very easy to work with.

> btw. the background ruby code generates this
> <body background= <img alt="Darkknight_wide"
> src="/images/darkKnight_wide.jpg?1229174053" /> >
>
> which is just weird :(

No, it's just wrong. `image_tag` creates a tag for an image, which is
not what the background attribute is expecting.

You should use your style sheet to set this, e.g.

body { background-image: url("/images/darkKnight_wide.jpg"); }

Jan Kadera

unread,
Jul 24, 2010, 1:30:39 PM7/24/10
to rubyonra...@googlegroups.com
I added to .css file this
background: /images/darkKnight_wide.jpg
aaand it doesn't work.
My problem with css is that it is not part of the source code, so I cant take a look, where in the code is it built in. You may say that it is obvious, but I'm saying I don't trust obvious, I trust my eyes. I'm sorry on this one, but I really don't believe that .css is worthed, but if you'll be so kind and advice me, how background in css works, I'll be really glad.


"Did you restart your server? What's `view source` show you as the
path? Are you using a tool like Firebug to examine why the request
isn't working?"
Restart I did indeed.
What is `view source` and Firebug I don't know
...and I don't want to create new google. I just want it to be simple and work, please.


"You might want to play around with some static HTML pages a bit to
get a better feel for how HTML and CSS work..."
I'd say thats exactly what I'm doing last few days despite what I wanted to do...



2010/7/24 Hassan Schroeder <hassan.s...@gmail.com>

Jan Kadera

unread,
Jul 24, 2010, 1:32:30 PM7/24/10
to rubyonra...@googlegroups.com
I tried heroku. I wasn't even able to figure out how to connect to it or do anything with it :(
but thanks for advice with the background.

Jan



2010/7/24 Hassan Schroeder <hassan.s...@gmail.com>
On Sat, Jul 24, 2010 at 10:18 AM, Jan Kadera <honza....@gmail.com> wrote:

Hassan Schroeder

unread,
Jul 24, 2010, 1:49:08 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 10:30 AM, Jan Kadera <honza....@gmail.com> wrote:
> I added to .css file this
> background: /images/darkKnight_wide.jpg
> aaand it doesn't work.

Of course it doesn't work -- it's not what I showed you.

> My problem with css is that it is not part of the source code, so I cant
> take a look, where in the code is it built in. You may say that it is
> obvious, but I'm saying I don't trust obvious, I trust my eyes. I'm sorry on
> this one, but I really don't believe that .css is worthed, but if you'll be
> so kind and advice me, how background in css works, I'll be really glad.

What are you talking about? CSS is certainly part of your source code.

> What is `view source` and Firebug I don't know

Every browser offers the option to view the HTML source of a page
you're looking at it. It's a basic tool for troubleshooting (and learning).

Firebug is a Firefox extension that gives you visibility into a number
of areas (CSS, network connections, etc.) and is indispensable for,
again, troubleshooting and learning.

> ...and I don't want to create new google. I just want it to be simple and
> work, please.

It is simple. You need to develop a better understanding.

Good luck.

Frederick Cheung

unread,
Jul 24, 2010, 2:29:31 PM7/24/10
to Ruby on Rails: Talk


On Jul 24, 6:06 pm, Jan Kadera <honza.kad...@gmail.com> wrote:
> Frederick:
> Thank you, it's much clearer. Unfortunately, since I work with files saved
> in app/... and the address equals public/... I cannot imagine any case to
> use relative path :/
>
File system paths are irrelevant, what matters are the URLs browsers
use to access stuff - even if the file you're working on is app/
controllers/posts.rb, that's just /posts to the web browser.

Fred

Jan Kadera

unread,
Jul 24, 2010, 3:10:30 PM7/24/10
to rubyonra...@googlegroups.com
It works now,thanks.
So, can I ask how to join the image_tag tag with the information of align of image?

Jan



2010/7/24 Jan Kadera <honza....@gmail.com>
I tried heroku. I wasn't even able to figure out how to connect to it or do anything with it :(

Hassan Schroeder

unread,
Jul 24, 2010, 3:16:06 PM7/24/10
to rubyonra...@googlegroups.com
On Sat, Jul 24, 2010 at 12:10 PM, Jan Kadera <honza....@gmail.com> wrote:

> So, can I ask how to join the image_tag tag with the information of align of
> image?

Go to <http://api.rubyonrails.org/> and look at the entry for image_tag

And you might want to bookmark the following 2 urls, as well:

<http://www.w3.org/TR/html401/>
<http://www.w3.org/TR/CSS21/>

HTH,

cageface

unread,
Jul 24, 2010, 4:09:03 PM7/24/10
to Ruby on Rails: Talk
On Jul 24, 10:18 am, Jan Kadera <honza.kad...@gmail.com> wrote:
> I meant I was unable to find ruby webhosting, where could I try to build up
> web pages in ruby. Even If I found it, it would contain advertisment for
> being free. So this way I can build my own web on my own computer with ruby
> and without advertisment.

You will save yourself a lot of time and frustration if you first
learn the basics of HTML and CSS before trying to build dynamic
websites. You have to learn to walk before you can run.

--
miles

Jan Kadera

unread,
Jul 25, 2010, 3:38:13 AM7/25/10
to rubyonra...@googlegroups.com
Guys, I really appreciate your help, but I can't read those manuals, because they are wrong. Those are written for people like you, who already understands, which is imho needles.

For example on that api page, you recommended me for seek out the align tag...it is not there. Well, since I'm not a complete idiot and I knew it should be there, I tried the tag align in the format of examples there and it worked.

But I can't learn like that. I'm no oracle and don't know what the author meant...ussually.

And I'm afraid that stuff like: You don't use <body background>, you use .css...I think it wont be written anywhere, because in the manual to html will be information, that it is done like the first example and in .css manual will be written that it can be done like the second. Am I wrong?

Jan



2010/7/24 cageface <mile...@gmail.com>

--
Reply all
Reply to author
Forward
0 new messages