Branching records structure + "accordion" pages

5 views
Skip to first unread message

Philip Rhoades

unread,
May 4, 2018, 10:09:23 PM5/4/18
to rubyonra...@googlegroups.com
People,

Mainly as a Rails learning exercise I have been thinking about
converting my plain HTML + JS "accordion" site:

http://philiprhoades.org

to Rails to enable a faster and more general-purpose UI for adding new
pages and info. What I would like is a branching tree structure of
accordion pages but I am trying to work out how this structure might be
represented in the DB . .

Comments about whether this is a sensible thing to attempt and how the
DB record structure might work are appreciated . .

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: ph...@pricom.com.au

David Merrick

unread,
May 4, 2018, 11:10:57 PM5/4/18
to rubyonra...@googlegroups.com
Hi Philip I don 't think a DB for you navigation is going to solve your problem. I think you need to incorporate Bread Crumbs into your pages.

For example once you go to this page http://freezephil.org/ you have no way of getting back to the Previous Page or Home Page.



Cheers Dave

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4c5b7453b3e9f41951f079ac8c6478d7%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.



--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz/

Email merri...@gmail.com

Ph   03 216 2053

Cell 027 3089 169

Philip Rhoades

unread,
May 5, 2018, 3:06:58 AM5/5/18
to rubyonra...@googlegroups.com
David,


On 2018-05-05 13:10, David Merrick wrote:
> Hi Philip I don 't think a DB for you navigation is going to solve
> your problem. I think you need to incorporate Bread Crumbs into your
> pages.
>
> For example once you go to this page http://freezephil.org/ you have
> no way of getting back to the Previous Page or Home Page.
>
> Solution One https://www.w3schools.com/howto/howto_css_breadcrumbs.asp
>
> Solution Two uses Bootstrap
> https://v4-alpha.getbootstrap.com/components/breadcrumb/


Thanks for the quick response! I will have a look at those links.

Regards,

Phil.
>> send an email to rubyonrails-ta...@googlegroups.com.
>> To post to this group, send email to
>> rubyonra...@googlegroups.com.
>> [1].
>> For more options, visit https://groups.google.com/d/optout [2].
>
> --
>
> Dave Merrick
>
> Daves Web Designs
>
> Website http://www.daveswebdesigns.co.nz/
>
> Email merri...@gmail.com
>
> Ph 03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to
> rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbkNftmwe%3D4M%3D0zxo4Q-qdDUy%2BR9-qkwx_3Xs23XW7eQQ%40mail.gmail.com
> [3].
> For more options, visit https://groups.google.com/d/optout.
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/rubyonrails-talk/4c5b7453b3e9f41951f079ac8c6478d7%40pricom.com.au
> [2] https://groups.google.com/d/optout
> [3]
> https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbkNftmwe%3D4M%3D0zxo4Q-qdDUy%2BR9-qkwx_3Xs23XW7eQQ%40mail.gmail.com?utm_medium=email&utm_source=footer
Reply all
Reply to author
Forward
0 new messages