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. Yay, hurray! [1] http://weblog.rubyonrails.org/2006/11/23/rails-1-2-release-candidate-1 [2] http://weblog.rubyonrails.org/2006/11/26/1-2-new-in-activerecord [3] http://weblog.rubyonrails.org/2006/11/26/1-2-new-in-actionpack [4] http://weblog.rubyonrails.org/2006/11/26/1-2-new-in-activesupport -- David Heinemeier Hansson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
DHH wrote:> 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?? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> > 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
DHH wrote:> >> > 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. -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
DHH wrote:> 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!> Thank you for your support... -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Wang wrote:> 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.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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
James Adam wrote:> > Michael Wang wrote: >> 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. > > 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.Nice, thanks. -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hemant Kumar
2007-Jan-12 23:37 UTC
Wierd session behavious in development mode after switching to rails 1.2
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 session[:maps_cust_pref] = nil save_option = params[:save_option][:save_option].to_i generate_cookie_for_ticks 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? It was working alright on 1.1.6 although. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hemant Kumar
2007-Jan-12 23:54 UTC
Re: Wierd session behavious in development mode after switching to rails 1.2
On Sat, 2007-01-13 at 05:08 +0530, Hemant Kumar wrote:> 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 > > session[:maps_cust_pref] = nil > save_option = params[:save_option][:save_option].to_i > > generate_cookie_for_ticks > > 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? > > It was working alright on 1.1.6 although. > >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 RAILS_ROOT: /home/gnufied/ubac_webfront/config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/controllers/user_controller.rb:4:in `home'' /usr/local/bin/mongrel_rails:18:in `load'' /usr/local/bin/mongrel_rails:18 /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:1092:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:1092:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:632:in `call_filter'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:638:in `call_filter'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:438:in `call'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:637:in `call_filter'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/rescue.rb:83:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:427:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:427:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:624:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/session_management.rb:114:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:330:in `process'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6.5848/lib/dispatcher.rb:41:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:78:in `process'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `synchronize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `process'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:618:in `process_client'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `each'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `process_client'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `new'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `new'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:271:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `each'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:127:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/command.rb:211:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:243 #{RAILS_ROOT}/app/controllers/user_controller.rb:4:in `home'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:1092:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:1092:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:632:in `call_filter'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:638:in `call_filter'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:438:in `call'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:637:in `call_filter'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/rescue.rb:83:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:427:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:427:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/filters.rb:624:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/session_management.rb:114:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5848/lib/action_controller/base.rb:330:in `process'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6.5848/lib/dispatcher.rb:41:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:78:in `process'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `synchronize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `process'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:618:in `process_client'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `each'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `process_client'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `new'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `new'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:271:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `each'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:127:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/command.rb:211:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:243 /usr/local/bin/mongrel_rails:18:in `load'' /usr/local/bin/mongrel_rails:18 Request Parameters: None --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---