Displaying 3 results from an estimated 3 matches for "logout_path".
Did you mean:
logon_path
2007 Dec 16
3
how do I spec my Rails routes?
Once again, here''s something I haven''t figured out. Apologies if this
is too newb-ish, but, how do I spec my routes using RSpec-Rails?
In particular, I''ve got a catch-all route that needs to catch a wide
variety of URLs:
map.document ''*url'', :controller => ''documents'', :action => ''show''
Is there a way to
2008 Mar 16
1
form_for error
Hi all,
I have the following code in my application layout:
<div id="utility">
<% if logged_in? %>
<%= link_to "Sign Out", logout_path %>
<% else %>
<%= link_to_function "Sign in",
"$(''signin'').toggle();$(''signin_link'').toggle()",
:id => "signin_link" %>
<%= form_tag login_path, {:id => "signin"}, {:style =>"...
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
...9;/logout'', :controller => ''sessions'', :action =>
''destroy''
map.login ''/login'', :controller => ''sessions'', :action =>
''new''
end
In my views I make reference to login_path and logout_path and these
correctly form fully-qualified absolute URLs which include the https://
protocol directive. But **they point to the wrong server**. I am
supposed to get https://www.mydomain.com/myapp/login but instead I get
https://myapp.mydomain.com/myapp/login.
What do I have to do to get Rails to gen...