> In my view I want something like :
>
> <% image_tag('logo.gif', :locale => cookies[:locale])%>
>
> any better way?Will all the pictures on the site be localized? Probably not - maybe it would be better if you create a method called something like image_localized_tag in your application helper. It could take "locale" from cookie and change passed file name (locale isn't parameter now). After changing the name it could just call image_tag and return the result. This is just a suggestion - IMHO it's easier to implement and cleaner later on for other developers - some of them may expect different behaviour from image_tag cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

