On 1 April 2011 00:00, Manny 777 <[email protected]> wrote: > But obviously I'm getting error message about undefined local variable > sequence.
Are you sure you're not getting "undefined local variable save_seq"? Did you cut/paste the code here, or did you re-type it (so is it *exactly* what's in your controller, or could there be small differences?) It could be worth you setting save_seq: high = Users.find(:order => 'sequence_at DESC', :limit => 1) save_seq = high.sequence unless high.sequence.nil? || high.sequence == 0 ...etc -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

