On Friday 31 October 2008 16:37:08 Davi Vidal wrote:
>       Hi all. I'm trying to get gravtastic working at my comments model, so 
> I'm
> doing this:
>
> class Comment < ActiveRecord::Base
>   validates_presence_of :commentary
>
>   belongs_to :commentary, :polymorphic => true
>
>   attr_accessor :anon
>
>   is_gravtastic :rating => 'R',
>                    :size => 40   ,
>                    :default => "/images/no_gravatar.png"
> end
>
>       My doubt is: using comment.gravatar_url gives me the following:
>
> 
http://gravatar.com/avatar/HASH.png?d=%2Fimages%2Fno_gravatar.png&amp;r=R&a
>mp;s=40
>
>       And it doesn't renders my image correctly. How can I get my full
> application URL as http://my.domain.tld/app/images/no_gravatar.png ?
>

        I'm using Mongrel as development server, but I'll deploy it to Apache + 
Passenger.

        I'm trying to use request_uri, but no success.

        Any kind of tips, please?


        Best regards,
-- 
Davi Vidal
--
E-mail: davividal arroba siscompar ponto com ponto br
MSN   : davividal arroba msn ponto com
GTalk : davividal arroba gmail ponto com
Skype : davividal
YIM   : davi_vidal
ICQ   : 138815296


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