to_string might be better.
Colin
>
> The alert gives me null.
>
> I hope I was clear. Thanks for all your help.
>
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
I don't understand what is funny. I pointed out what seemed to be an
obvious error in your code. It is easy to miss typographical errors
when looking at your own code.
Colin
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/Jy7WrWMAnSgJ.