Hello,
Allmost all pages have the same layout except the login page.
There the sidebar with menu is not visible.
Is there a way to tell rails that when im on the login page the sidebar
must not be visible.
Roelof
--
You received this message because you are subscribed to the Google Groups
you could use current_page with route to check the page. Ex:
render sidebar unless current_page?(login_path)
Matt
On Aug 13, 2014, at 2:20 AM, Roelof Wobben rwob...@hotmail.com wrote:
Hello,
Allmost all pages have the same layout except the login page.
There the sidebar with menu is not
oke , and put this in the controller ??
Roelof
Op woensdag 13 augustus 2014 08:26:52 UTC+2 schreef matt:
you could use current_page with route to check the page. Ex:
render “sidebar” unless current_page?(login_path)
Matt
On Aug 13, 2014, at 2:20 AM, Roelof Wobben rwo...@hotmail.com
I have downloaded git, ruby installer etc. I am following a tutorial on
how to installing Ruby on windows.Using cmd on Windows, After installing
devkit in the Ruby200x64 folder, I installed it successfully, created a
testapp folder and used the bundle exec rails server command and
everything shows
On Wednesday, August 13, 2014 1:48:16 PM UTC+2, Ruby-Forum.com User wrote:
I have downloaded git, ruby installer etc. I am following a tutorial on
how to installing Ruby on windows.Using cmd on Windows, After installing
devkit in the Ruby200x64 folder, I installed it successfully, created
On Tuesday, August 12, 2014 11:19:53 PM UTC+2, Ruby-Forum.com User wrote:
Hi, I'm new to Ruby and Ruby on Rails. I have a CentOS server which is
part of an offline/private network. I need to install Ruby on Rails,
MySQL, Apache, and PHPmyAdmin on the server and be able to take and keep
No, the render command goes in your layout in this case since it is
something that a lot of your views are using.
%= render “sidebar” unless current_page?(login_path) %
On Wednesday, August 13, 2014 12:32:48 AM UTC-6, Roelof Wobben wrote:
oke , and put this in the controller ??
Roelof
Sorry but I do not work. I see a message that login_path is not known. I
think that devise is messing things up.
Roelof
Op woensdag 13 augustus 2014 17:56:23 UTC+2 schreef Eric Saupe:
No, the render command goes in your layout in this case since it is
something that a lot of your views
You have to look in your routes file what is your login_path.
login_path is just a example.
2014-08-13 15:24 GMT-03:00 Roelof Wobben rwob...@hotmail.com:
Sorry but I do not work. I see a message that login_path is not known. I
think that devise is messing things up.
Roelof
Op woensdag
run rake routes in cosole to see your login path.
2014-08-13 16:08 GMT-03:00 Germano Teixeira german...@gmail.com:
You have to look in your routes file what is your login_path.
login_path is just a example.
2014-08-13 15:24 GMT-03:00 Roelof Wobben rwob...@hotmail.com:
Sorry but I do not
Rake routes :
Prefix Verb URI PatternController#Action
You still need _path. So in your case, since it is the login which I'm
assuming is new_admin_session, it would be
%= render “sidebar” unless current_page?(new_admin_session_path) %
On Wednesday, August 13, 2014 1:20:26 PM UTC-6, Roelof Wobben wrote:
Rake routes :
Prefix Verb URI
12 matches
Mail list logo