Syntax question

Forums > Rails Development > Syntax question

Login to post a new topic

Author Message
andrer
Member since 03 Jul 12:49
0 posts

I notice that form_for tags in rhtml files end with “>” instead of “>”. What does the ‘’ indicate?

andrer
Member since 03 Jul 12:49
0 posts

Oops, not sure what happened in the above post, please ignore the strike through.

andrer
Member since 03 Jul 12:49
0 posts

Hmm, rather ignore the whole thing. Don’t seem to be able to include sciptlet tags in the posts.
What i’m trying to ask is why a minus(-) sign is used in the form_for tags in the rhtml files? The minus is also then used in the corresponding end tag.

railscoder
Member since 12 Jul 18:32
0 posts

i’d like to know that also

andrer
Member since 03 Jul 12:49
0 posts

I compared html source with and without the minus in the form tag, and it looks like excluding the minus forces a line break in the resulting html directly after the form tag.
So not as significant as i was expecting.