search for: user_session_path

Displaying 3 results from an estimated 3 matches for "user_session_path".

2010 Feb 07
0
Authlogic Oauth problem with Remember Me
...ication. I''m trying to build my Rails app such that the user is automatically redirected to Twitter''s login/registration, instead of having a "login with Twitter" button on my page. That works so far, using a new view like this: <html> <body> <% form_tag(user_session_path, :method => :post, :id => ''new_user_session'') do %> <%= hidden_field_tag ''login_with_oauth'', ''Login with Twitter'' %> <% end %> <script type="text/javascript"> var e = document.getElementById("new_user_se...
2010 Nov 07
1
Strange authlogic logout behavior
...t complete. Have a nice day!" redirect_to root_url end end [/code] application layout file snippet [code] <% if current_user %> <li><a><%= link_to current_user.login, edit_user_path(:current) %></a></li> <li><%= link_to "logout", user_session_path, :method => :delete %></li> <% else %> <li><%= link_to "log In", new_user_session_path %></li> <% end %> [/code] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ru...
2011 Jun 29
6
RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
...Login\n\n\n\n" # ./spec/views/user_sessions/new.html.erb_spec.rb:9:in `block (3 levels) in <top (required)>'' So why might the <%= %> not be properly showing the @message? I actually originally had the form code in the view: <%= form_for @user_session, :url => user_session_path do |f| %> <%= f.label :login %> <%= f.text_field :login, :id=>"admin_login" %> <%= f.label :password %> <%= f.password_field :password, :id=>"admin_password" %> <%= f.submit "Login", :id=>"admin_login_button" %> &lt...