use the right method
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@155 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
3ce5d102e9
commit
05c9a673ed
|
@ -8,7 +8,7 @@ class SessionsController < ApplicationController
|
|||
@people = People.authenticate(params[:login], params[:password])
|
||||
if @people
|
||||
session[:people_title] = @people.title
|
||||
session[:people_title_for_url] = @people.page.title_for_url
|
||||
session[:people_title_for_url] = @people.to_param
|
||||
session[:people_id] = @people.id
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
|
|
Reference in New Issue