Ruby on Rails Tuesday, November 23, 2010

venkata reddy wrote in post #963302:
> Dear marquardt,
> The tutorial u told is a bit confusing to me as it is
> especially written for unix users , (it contained too much content)
> and i am a windows user.so other than this can u let me know some
> other tutorials on rials..,

I don't see what difference it makes what OS you're running? Rails
routing is the same regardless of what platform you choose for
development.

In a Rails app the "public" folder serves as the web server's document
root. All requests (unless otherwise configured in your front-end web
server) are routed to the Rails routing system.

So as already explained by others you have a few options for static page
content. You can either put the static files in the public folder and
link directly to them with a standard HTML hyperlink.

<a href="contact.html">Contact Us</a>

Or you can provide a more organized and "Rails like" approach using
standard Rails routing.

http://guides.rubyonrails.org/routing.html

--
Posted via http://www.ruby-forum.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment