Excellent - this worked great.  Another tool for me to use.  You're
correct l. was an error on my part in my snippet.

Thanks Craig

On Feb 18, 12:15 am, Craig Demyanovich <[email protected]> wrote:
> You could use #send. Try something like this:
>
> (0..2).each do |i|
>   example.send("spec_#{i}_english=", "test value")
>   l.save
> end
>
> Do you really want l.save instead of example.save, though? Maybe there's
> some context missing from your code snippet.
>
> Regards,
> Craig
--~--~---------~--~----~------------~-------~--~----~
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