I''ve got a weird problem which i can work around but want to understand! :) Let''s say that name = "small_logo" This works - @small_logo = @music_service.send("small_logo").build(file_hash) and this works @small_logo = @music_service.send("#{name}").build(file_hash) but this *doesn''t* work @small_logo = @music_service.send(name).build(file_hash) and neither does this @small_logo = @music_service.send(name.to_s).build(file_hash) In other words, a string is fine but a variable set to a string isn''t, unless it''s converted to a string inside #{ }. Can anyone explain this to me? I don''t know if it''s connected to the attachment_fu ''build'' method or if it''s some general ruby weirdness. thanks max -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---