How to edit a link to 'Connection'.?
Added by fae m g over 14 years ago
Hello I am doing a project and a requirement is to edit the link: 'Connection'.
I searched and I got the file \ app \ views \ layouts \ base.rhtml
And the line where it should be the link is this:
....
<div id="top-menu">
<div id="account">
<% = Render_menu: account_menu -%>
....
Appears render_menu: account_menu, and do not know its function.
The purpose of this amendment is to change the link 'http:localhost/login' to 'https: / / localhost / login'
It is urgent, I hope your help.
Replies (5)
RE: How to edit a link to 'Connection'.?
-
Added by Felix Schäfer over 14 years ago
Change the protocol in the settings and make redirects to make sure the login action can only be accessed over https, no need to change the view code.
RE: How to edit a link to 'Connection'.?
-
Added by fae m g over 14 years ago
It is required that only the login is https, the rest http.
There are ways to do configuring apache.
But I want to know to edit the code.
Thanks for responding to see if I can help.
RE: How to edit a link to 'Connection'.?
-
Added by Felix Schäfer over 14 years ago
Changing the rendered link will not disable the link, anyone can still go to http://localhost/login and login. You seem to be knowledgeable enough to configure your apache to redirect /login over http to /login over https. Do that, that will guarantee no one can access /login over http, changing the code you are looking for will only change it in the account menu and will not disable the /login action over http. If you still want to change it (though again: it is pointless), learn some ruby and rails and look for account_menu in the rest of the code.
RE: How to edit a link to 'Connection'.?
-
Added by fae m g over 14 years ago
Yes, I know that apache setting can be left perfect.
I just want to know out of curiosity does render menu and how could it do to change that link. If anyone knows help me.
Thanks Felix.
RE: How to edit a link to 'Connection'.?
-
Added by Felix Schäfer over 14 years ago
I already gave you all you need to find the part that sets the login item in the menu.
Felix Schäfer wrote:
look for account_menu in the rest of the code.