# I want to link html pages to my app

**URL:** <https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755>\
**Category:** Rails\
**Created:** [December 28, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755 "2009-12-28T16:52:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oluwayomi\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f475e1/32.png) [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Post date:** [December 28, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755/1 "2009-12-28T16:52:14Z")

</div>

Hello,I have app-an online B2C site selling books.I want to put  
hyperlinks on my page.Where do i store the html files that my views will  
call?

Regards and Respects,

Kindness in thought leads to wisdom.  
Kindness in speech leads to eloquence.  
Kindness in action leads to love.

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Oluwayomi\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f475e1/32.png) [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Post date:** [December 28, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755/2 "2009-12-28T17:52:59Z")

</div>

On Dec 28, 4:48 pm, Oluwayomi O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,I have app-an online B2C site selling books.I want to put hyperlinks on my page.Where do i store the html files that my views will call?

Not sure I quite understand what you are asking but you can put static  
content in your app’s public folder.

Fred

> Regards and Respects,
> 
> Kindness in thought leads to wisdom.  
> Kindness in speech leads to eloquence.  
> Kindness in action leads to love.

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Oluwayomi\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f475e1/32.png) [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Post date:** [December 28, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755/3 "2009-12-28T22:01:59Z")

</div>

i wan to put hyperlinks linking Â pages likes “about us”, “news”,“contact  
us” etc. from my home page.I understand these contents would be written  
somewhere,where is this location? you know we normally save our images  
in the public dir if we want rails to fetch it.Where do i save my html  
pages, if i want the controller to fetch them/

Regards and Respects,

Kindness in thought leads to wisdom.  
Kindness in speech leads to eloquence.  
Kindness in action leads to love.

— On Mon, 12/28/09, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

From: Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: [Rails] Re: i want to link html pages to my app  
To: “Ruby on Rails: Talk” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Monday, December 28, 2009, 8:51 AM

On Dec 28, 4:48Â pm, Oluwayomi O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,I have app-an online B2C site selling books.I want to put hyperlinks on my page.Where do i store the html files that my views will call?

Not sure I quite understand what you are asking but you can put static  
content in your app’s public folder.

Fred

> Regards and Respects,
> 
> Kindness in thought leads to wisdom.  
> Kindness in speech leads to eloquence.  
> Kindness in action leads to love.

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Oluwayomi\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f475e1/32.png) [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Post date:** [December 29, 2009, 2:44am UTC](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755/4 "2009-12-29T02:44:41Z")

</div>

On Mon, Dec 28, 2009 at 1:00 PM, Oluwayomi O.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Kindness in thought leads to wisdom.  
> Kindness in speech leads to eloquence.  
> Kindness in action leads to love.

Oluwayomi, if you wanting the controller to, you’ll save them in the  
following directory:

\<rails\_app\_root\_folder\>/app/views/\<controller\_name\>/some\_html\_file\_1.html.erb  
\<rails\_app\_root\_folder\>/app/views/\<controller\_name\>/some\_html\_file\_2.html.erb  
\<rails\_app\_root\_folder\>/app/views/\<controller\_name\>/some\_html\_file\_3.html.erb  
\<rails\_app\_root\_folder\>/app/views/\<controller\_name\>/some\_html\_file\_4.html.erb

…

\<rails\_application\_root\_folder\>/app/views/\<controller\_name\>/some\_html\_file\_n.html.erb

Furthermore, you can access your images by using the following path:

/images/\<image\_name\>.

Good luck,

-Conrad

> content in your app’s public folder.  
> You received this message because you are subscribed to the Google G.
> 
> –  
> You received this message because you are subscribed to the Google G.  
> “Ruby on Rails: Talk” group.  
> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
