Return to home page from /blog

21 views
Skip to first unread message

Bob Cook

unread,
Aug 28, 2014, 10:40:15 PM8/28/14
to monolo...@googlegroups.com
I have Monologue set up in my Rails application under the route '/blog'.  What can I do on the Monologue page to return to the '/' home page?

Bob Cook

unread,
Aug 29, 2014, 1:54:05 PM8/29/14
to monolo...@googlegroups.com
You answered "Can't you just create a link to main_app.root_url ? ( I think)
If that does not work  I can give you a better answer tomorrow :-)"

Where can I make that call?  Or better yet can I just render my own header?

Jean-Philippe Boily

unread,
Aug 29, 2014, 7:09:48 PM8/29/14
to bob...@sunrem.com, monolo...@googlegroups.com
You can configure Monologue to use your own layout, see in the config wiki: https://github.com/jipiboily/monologue/wiki/Configuration


Also, you should be able to use routes like “main_app.root_url” just like you would use “root_url” in your main app.

Hope that helps,
Jean-Philippe Boily
Human. Ruby developer.  | http://jipiboily.com/


--
You received this message because you are subscribed to the Google Groups "Monologue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to monologue-rb...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Sevestre

unread,
Aug 29, 2014, 8:29:13 PM8/29/14
to Bob Cook, monolo...@googlegroups.com

You can also just override any erb file by creating one with the same name and path in your main app.

--
Reply all
Reply to author
Forward
0 new messages