Skip to content

Commit

Permalink
session form uses restul routes. fixed restful session routes to poin…
Browse files Browse the repository at this point in the history
…t to authr/sessions controller
  • Loading branch information
jrwest committed Feb 27, 2010
1 parent 6f46d0f commit 01fe894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/authr/sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% form_for(@account, :url => login_path) do |f| %>
<% form_for(@account) do |f| %>
<fieldset>
<legend>Log In</legend>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Rails.application.routes.draw do |map|
resources :accounts, :controller => 'authr/accounts', :only => [:new, :create]
resource :session, :only => [:new, :create, :destroy]
resource :session, :controller => 'authr/sessions', :only => [:new, :create, :destroy]
end

0 comments on commit 01fe894

Please sign in to comment.