On 20 May 2014 03:57, Duong vong veasna wrote:
> Hi guys
> I have problem when i try to link to my new page, can any one help me.
>
> thanks and regard.
>
> get "link/home"
> get "link/about"
Probably someone will help if you describe the problem. Also I am not
sure what this has to do with th
Hi guys
I have problem when i try to link to my new page, can any one help me.
thanks and regard.
get "link/home"
get "link/about"
On Wednesday, May 7, 2014 7:00:17 AM UTC-7, Pratap Patil wrote:
>
> Hi guys
>Firstly rake routes on console , check existing path is available. Not
> availabl
Hi guys
Firstly rake routes on console , check existing path is available. Not
available then need define path in route file
On Wednesday, May 7, 2014 3:57:45 PM UTC+5:30, Alfredo Barrero wrote:
>
> Hi guys, can someone tell me why I can't use routes like "user_path" in
> custom layouts like
Yes sure.
*'layouts/user-layout.html.erb'*
<%= link_to 'Log out', user_path ,
method: :delete %>
I have a few more layouts and it does not work neither. But it does in
'application.html.erb'. I think that some route configuration have to be
set before this but I don´t know what.
Thanks
El
How exactly are you trying to use the routes? Do you have some code you
could share?
On Wednesday, May 7, 2014 1:27:45 PM UTC+3, Alfredo Barrero wrote:
>
> Hi guys, can someone tell me why I can't use routes like "user_path" in
> custom layouts like 'user-layout.html.erb' ???
>
> Thanks & regar
Hi Ar,
Thanks!
I added that statement because my layout wouldn't show. So with or
without it, it makes no difference.
Regards,
Jaap Haagmans
On Sep 8, 6:01 pm, Ar Chron wrote:
> Jaap Haagmans wrote:
> > In my controller:
>
> > class ApplicationController < ActionController::Base
> > protect
Jaap Haagmans wrote:
> In my controller:
>
> class ApplicationController < ActionController::Base
> protect_from_forgery
>
> layout 'application'
> end
>
Yank the
layout 'application'
statement and you should be fine. My out-of-the-generator Rails 3 app
honors the application.html.erb w
Hi James,
Thanks for your thinking with me.
I haven't upgraded from Rails 2.3.x, I've started a new Rails 3
application and edited the generated application.html.erb. I've also
tried creating a new one called main.html.erb and pointing to that in
my ApplicationController, but that didn't work as
On Sep 7, 5:51 pm, jhaagmans wrote:
> Hi,
>
> I've just started my first Rails 3 stable app from scratch and still
> looking at all the changes. Most things are wonderful. However, I
> can't figure out what happened to the layout structure.
>
> In my controller:
>
> class ApplicationController < A
Hello Johndel,
Thanks for your response. Unfortunately, it did not work. I typed in
layout "admin"
instead of
layout :admin
Still. No luck.
Bharat
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Tal
I think it should be layout "admin" . For some reason symbols in the
layout doesn't work.
On 26 Αύγ, 06:22, Bharat Ruparel wrote:
> I have an admin section in my rails 3 app. where I want to use a
> different layout than the main layouts/application.html.haml layout.
> Here is the snippet of th
deegee wrote:
> You have to keep in mind how views are being called:
> - The browser makes a request to a URL
> - The Rails routing rules determine which controller/action the URL
> resolves to
> - The action is called
> - The corresponding view (assuming the action doesn't redirect to a
> new act
You have to keep in mind how views are being called:
- The browser makes a request to a URL
- The Rails routing rules determine which controller/action the URL
resolves to
- The action is called
- The corresponding view (assuming the action doesn't redirect to a
new action) is being called
- The c
13 matches
Mail list logo