This is it. We're a mere two shakes of a lamb's tail from releasing
the final version of Rails 1.2. But before we light the fireworks and
pop the champaign, we'll just do one itsy, bitsy, tiny test run. Like
wearing protection glasses in downtown Copenhagen on New Year's. You
know, just for precautions.
So please do give it a good run. We're looking for STOP THE BOAT and
HOLD THE PRESSES kind of issues for this one. Nothing else will stop it
(but please do report every thing you find any way).
For a reminder on how to install and what's new, see the release
notes for Release Candidate 1[1]. We also did a series of highlights
for Active Record[2], Action Pack[3], and Active Support[4]. Read those
and hold your breath in anticipation. Unless a surge of heinous issues
appear, we're expecting the final version to land some times next
week.
> This is it. We're a mere two shakes of a lamb's tail from releasing
> the final version of Rails 1.2.
Help a newb out. Does this mean a new Edge Rails? or rolling goodies from
Edge and the community into a new True Rails??
Edge and 1.2 split their ways a while back, so this is the stable and
solid snapshot of edge from a little while back. Edge will now have 2.0
in its bull's eye. The final 1.2 release is for more wider distribution
and people uncomfortable with a development branch.
> This is it. We're a mere two shakes of a lamb's tail from releasing
> the final version of Rails 1.2.
Help a newb out. Does this mean a new Edge Rails? or rolling goodies from
Edge and the community into a new True Rails??
Edge and 1.2 split their ways a while back, so this is the stable and
solid snapshot of edge from a little while back. Edge will now have 2.0
in its bull's eye. The final 1.2 release is for more wider distribution
and people uncomfortable with a development branch.
Is using rake still okay? I just tried
rake rails:freeze:edge
and it picked up revision 5849 (actually it picked up 5848 first, heh) which the Trac says is tagged as RC2 so that looks right.
Edge and 1.2 split their ways a while back, so this is the stable and
solid snapshot of edge from a little while back. Edge will now have 2.0
in its bull's eye. The final 1.2 release is for more wider distribution
and people uncomfortable with a development branch.
Ah, so those of us researching how to write about Rails, for others to read, need to keep up with the trailing end of the shockwave, not its leading edge.
My name is Phlip.
<all: Hi, Phlip>
And I have been Edge-free for 2 weeks now.
<one guy: Hey just take it one day at a time, man!>
and it picked up revision 5849 (actually it picked up 5848 first, heh)
which the Trac says is tagged as RC2 so that looks right.
Unless I'm mistaken, this will still give you the /trunk of Rails, not
the 1.2 branch. With subversion, unlike CVS, specific revisions in a
repository aren't tied to 'tags' in the same way.
You'll want to run "rake rails:freeze:edge TAG=rel_1-2-0_RC2" to make
sure that you get the right tag.
and it picked up revision 5849 (actually it picked up 5848 first, heh)
which the Trac says is tagged as RC2 so that looks right.
Unless I'm mistaken, this will still give you the /trunk of Rails, not
the 1.2 branch. With subversion, unlike CVS, specific revisions in a
repository aren't tied to 'tags' in the same way.
You'll want to run "rake rails:freeze:edge TAG=rel_1-2-0_RC2" to make
sure that you get the right tag.
class UserController < ApplicationController
def home
# Following line throws error and session[:user] set by previous action login is gone here.
$logme.info "Home session information: is #{session[:user].login} and #{session[:user].firstname}"
redirect_to_stored_or_default :controller => "start",:action => 'index'
end
# trying to access also called from a Ajax request normally. If not, they will be sent to "/user/home".
def login
if session[:user]
render :partial => 'shared/error_msg', :object => "Invalid Request", :layout => true
return
end
return if generate_blank
if @user = User.authenticate(params[:user][:login], params[:user][:password])
@user.logged_in_at = Time.now
save_pref if save_option == 1
session[:user] = @user
session[:user].save
# printing session information works here, but as soon as we redirect_to another page, all the session
# information is lost
$logme.info "From session information: is #{session[:user].login} and #{session[:user].firstname}"
render :update do |page|
page.redirect_to(:controller => 'user',:action => 'home')
end
else
render :update do |page|
page.replace_html('errordiv',:partial => 'error',
:object => "<p style='background:#d57068;margin:0px 200px 2px 0px; padding:2px 5px 2px 5px; color:#ffffff;'>Invalid Login ID or Password</p>")
page.visual_effect :highlight, 'errordiv'
end
end
end
end
I am doing nothing special here and yet i wonder why this happens?
Well in case, anyone is looking for exact error its here:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.login