On 1 April 2011 08:16, Manny 777 <[email protected]> wrote:
> No no, the exactly error is "undefined method `sequence' for
> nil:NilClass".
>
> It looks I am getting the database object in var "high",  but I can't to
> get individual items from this object (like "sequence" or "name"). When
> I am trying to print the sequence (puts high.sequence), I am getting
> error "undefined method `sequence' for nil:NilClass".


That is not what you said the error was initially.
High must be nil.  Try surrounding the code by if !high.nil?  (or just
if high).  That should make the error go away.  Then you can work out
why high is nil.

Colin

-- 
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.

Reply via email to