Hi all, Still working through the Hartl tutorials. Making progress but am hitting (another) wall. The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you want to see the code. I''ve pretty much followed the tutorial exactly except I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions are different. I posted a gist entry at https://gist.github.com/1257103 Hopefully I posted enough info to get the idea of what''s going on.seems like I must be using the gravatar_image_tag gem wrong or the rspec test is coded wrong but I''ve read through the tut over and over and can''t find any differences.. If I hard code a link in the show page for an image tag it works great, passes the tests and shows the page. I do have it showing the page and the gravatar fine now, but the test still fails.. if I take the class reference in the gravatar_image_tag gem call it works fine. I figure I''m using the class wrong. I AM using a newer version of the gravatar BUT, I originally was using the specific version referenced in the tutorial and the results were the same. Has anyone got any experience with this gem and what am I doing wrong? J Thanks, Max -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, Oct 2, 2011 at 1:29 PM, Allen A. Maxwell <aamax-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> wrote:> I posted a gist entry at https://gist.github.com/1257103 > > ** > > ** >The spec is looking for an IMG tag within an H1 tag, and it wants that IMG tag to have CLASS="gravatar". If you scroll down to your HTML source, there is no CLASS attribute on your gravatar IMG tag. This is dealt with in the tutorial. Go down to the heading named ''A gravatar helper'' to find out how to fix this: http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-two#sec:a_gravatar_helper Vinod -- Vinod Kurup, MD http://kurup.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Please disregard the post... I think i have it figured out... I had not quite read far enough and missed a key piece in the explanation... I needed to define the helper to put the class reference in there... All is well in ruby-land now... Thx Sent from Samsung tablet"Allen A. Maxwell" <aamax-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> wrote:Hi all, Still working through the Hartl tutorials. Making progress but am hitting (another) wall. The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you want to see the code. I’ve pretty much followed the tutorial exactly except I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions are different… I posted a gist entry at https://gist.github.com/1257103 Hopefully I posted enough info to get the idea of what’s going on…seems like I must be using the gravatar_image_tag gem wrong or the rspec test is coded wrong but I’ve read through the tut over and over and can’t find any differences…. If I hard code a link in the show page for an image tag it works great, passes the tests and shows the page… I do have it showing the page and the gravatar fine now, but the test still fails.. if I take the class reference in the gravatar_image_tag gem call it works fine… I figure I’m using the class wrong. I AM using a newer version of the gravatar BUT, I originally was using the specific version referenced in the tutorial and the results were the same… Has anyone got any experience with this gem and what am I doing wrong? J Thanks, Max -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Exactly... Thx. Sent from Samsung tabletVinod Kurup <vinod-46o65aAdjccAvxtiuMwx3w@public.gmane.org> wrote:On Sun, Oct 2, 2011 at 1:29 PM, Allen A. Maxwell <aamax-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> wrote: I posted a gist entry at https://gist.github.com/1257103 The spec is looking for an IMG tag within an H1 tag, and it wants that IMG tag to have CLASS="gravatar". If you scroll down to your HTML source, there is no CLASS attribute on your gravatar IMG tag. This is dealt with in the tutorial. Go down to the heading named ''A gravatar helper'' to find out how to fix this: http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-two#sec:a_gravatar_helper Vinod -- Vinod Kurup, MD http://kurup.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Oct 2, 2:03 pm, Allen Maxwell <aa...-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> wrote:> Please disregard the post... I think i have it figured out...Glad to hear it. One thing worth noting for the next time you get stuck - I''m not sure if the author mentions it prominently, but the source code for the completed tutorial application is available on github at https://github.com/railstutorial/sample_app I found it very handy to clone it to my machine and then compare my code with the author''s version if I had something weird happen. One does not often have the luxury of such a reference. Dan Nachbar -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Good idea.. I haven''t done too much customizations on the tut :) might help... -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Daniel Nachbar Sent: Monday, October 03, 2011 9:20 AM To: Ruby on Rails: Talk Subject: [Rails] Re: tutorial: gravatar_image_tag problem On Oct 2, 2:03 pm, Allen Maxwell <aa...-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> wrote:> Please disregard the post... I think i have it figured out...Glad to hear it. One thing worth noting for the next time you get stuck - I''m not sure if the author mentions it prominently, but the source code for the completed tutorial application is available on github at https://github.com/railstutorial/sample_app I found it very handy to clone it to my machine and then compare my code with the author''s version if I had something weird happen. One does not often have the luxury of such a reference. Dan Nachbar -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.