On Mon, Dec 28, 2009 at 1:00 PM, Oluwayomi Oluwadara
<yomidara-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>wrote:
> 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.
>
>
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>.<extension>
Good luck,
-Conrad
>
>
> --- On *Mon, 12/28/09, Frederick Cheung
<frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>*wrote:
>
>
> From: Frederick Cheung
<frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Subject: [Rails] Re: i want to link html pages to my app
> To: "Ruby on Rails: Talk"
<rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Date: Monday, December 28, 2009, 8:51 AM
>
>
>
>
> On Dec 28, 4:48 pm, Oluwayomi Oluwadara
<yomid...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org<http://mc/compose?to=yomid...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>>
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<http://mc/compose?to=rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> To unsubscribe from this group, send email to rubyonrails-talk+
>
unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<http://mc/compose?to=unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.