On 14 August 2014 18:18, Hassan Schroeder wrote:
> On Thu, Aug 14, 2014 at 10:10 AM, Roelof Wobben wrote:
>
>> ActionView::Template::Error (undefined local variable or method `“layouts'
>> for #<#:0x007f6269e49080>):
>> 21: <%= render “layouts/sidebar” unless
>> current_page?(new_adm
Thanks,,
Im using the ide of nitrious.io but this is the next problem that arise
with wrong characters.
I think I will look for a decent Linux distro and look then for a solution
where I can have all the files at one window. my code in another and a
terminal as a footer.
Roelof
Op donderda
On Thu, Aug 14, 2014 at 10:10 AM, Roelof Wobben wrote:
> ActionView::Template::Error (undefined local variable or method `“layouts'
> for #<#:0x007f6269e49080>):
> 21: <%= render “layouts/sidebar” unless
> current_page?(new_admin_session_path) %>
What in the name of all that's mercif
I think you mean this :
Processing by DashboardController#show as HTML
Rendered dashboard/show.html.erb within layouts/application (2.1m
On 14 August 2014 16:21, Roelof Wobben wrote:
> Here is the whole layout :
Look at the stack trace and find which line of your code generated the
error, then post just that section.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
Here is the whole layout :
Liberator Admin Theme
<%= stylesheet_link_tag "bootstrap/bootstrap.css",
"font-awesome-4.0.3/css/font-awesome.min.css", "jquery-ui.css",
"toastr.css", "style.css" %>
<%= render “layouts/sidebar” unless current_page?(new_admin_sessi
On 14 August 2014 14:10, Roelof Wobben wrote:
> undefined local variable or method `“layouts' for
> #<#:0x007f503949ded8>
Show us the line of code that error is generated on (with a couple of
lines each side). Copy/paste it here.
Colin
>
>
> Roelof
>
>
> Op donderdag 14 augustus 2014 13:54:36 U
undefined local variable or method `“layouts' for
#<#:0x007f503949ded8>
Roelof
Op donderdag 14 augustus 2014 13:54:36 UTC+2 schreef James Davis, PhD:
> Add the folder name where your sidebar partial is located.
>
> <%= render “layouts/sidebar” unless current_page?(new_admin_session_path)
>
Add the folder name where your sidebar partial is located.
<%= render “layouts/sidebar” unless current_page?(new_admin_session_path) %>
On Thursday, August 14, 2014 1:16:05 AM UTC-5, Roelof Wobben wrote:
>
> then I see this error message ;
>
> undefined local variable or method `“sidebar”' for
then I see this error message ;
undefined local variable or method `“sidebar”' for
#<#:0x007fc6a50d7118>
Where I have a sidebar.html.erb and a _sidebar.html.erb in the same
directory.
Roelof
Op woensdag 13 augustus 2014 22:06:47 UTC+2 schreef Eric Saupe:
> You still need _path. So in you
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
Rake routes :
Prefix Verb URI PatternController#Action
new_admin_s
run "rake routes" in cosole to see your login path.
2014-08-13 16:08 GMT-03:00 Germano Teixeira :
> 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 :
>
> Sorry but I do not work. I see a message that lo
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 :
> 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 201
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
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 ??
>
> Roel
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 > wrote:
>
> Hello,
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 wrote:
> Hello,
>
> Allmost all pages have the same layout except the login page.
> There the sidebar with menu is not visible.
>
> Is
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
19 matches
Mail list logo