Displaying 3 results from an estimated 3 matches for "new_user_session".
2010 Feb 07
0
Authlogic Oauth problem with Remember Me
...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_session");
e.submit();
</script>
</body>
<...
2011 Jul 14
10
Devise confusing routes
...for
over an hour yesterday late at night, it seemed like I fixed it.
But now, when I want to create a New User, it''s redirecting me to the
Sign In screen. Seems like I didn''t fix the problem completely.
I think Devise is confusing the routes. If I do rake routes, I get
this...
new_user_session GET /users/sign_in(.:format)
user_session POST /users/sign_in(.:format)
destroy_user_session DELETE /users/sign_out(.:format)
new_user GET /users/new(.:format)
edit_user GET /users/:id/edit(.:format)
user GET /users/:id(.:format)
This is routes.rb
devise_for :users, :controllers =&...
2010 Feb 16
0
Strange routing(?) Issue
...user_sessions GET /
user_sessions(.:format)
{:action=>"index", :controller=>"user_sessions"}
POST /
user_sessions(.:format)
{:action=>"create", :controller=>"user_sessions"}
new_user_session GET /user_sessions/
new(.:format)
{:action=>"new", :controller=>"user_sessions"}
edit_user_session GET /user_sessions/:id/
edit(.:format)
{:action=>"edit", :controller=>"user_sessions"}
user_session GET...