What is the rails way to do this? I''m using Rails 2.3.10 Error is: undefined local variable or method `favicon_link_tag'' for #<ActionView::Base:0xb6e57034> This module is needed I guess: ActionView::Helpers::AssetTagHelper Here is what I did: app/views/layouts/application.html.haml !!! 5 %html %head %title App1 - Rails Way = favicon_link_tag %body #content = yield -- 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-/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.
Craig Anderson wrote in post #968905:> What is the rails way to do this? I''m using Rails 2.3.10 > > Error is: > undefined local variable or method `favicon_link_tag'' for > #<ActionView::Base:0xb6e57034>Where would you expect favicon_link_tag to be defined? The error message is accurate.> > This module is needed I guess: > ActionView::Helpers::AssetTagHelper > > Here is what I did: > app/views/layouts/application.html.haml > !!! 5 > %html > %head > %title App1 - Rails Way > = favicon_link_tag > %body > #content > = yieldBest, -- marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/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.
I''m just learning rails and trying to learn the rails way. I expected that module ActionView::Helpers::AssetTagHelper would be available in the view. Marnen Laibow-Koser wrote in post #968906:> > Where would you expect favicon_link_tag to be defined? The error > message is accurate. >> -- > marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- 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-/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 don''t top-post. Craig Anderson wrote in post #968919:> I''m just learning rails and trying to learn the rails way. I expected > that module ActionView::Helpers::AssetTagHelper > would be available in the view.It is. But favicon_link_tag is not defined in there, at least according to the docs. Where did you get the idea that this method even exists? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/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.
What is top-post? Marnen Laibow-Koser wrote in post #968920:> Please don''t top-post. > > Craig Anderson wrote in post #968919: >> I''m just learning rails and trying to learn the rails way. I expected >> that module ActionView::Helpers::AssetTagHelper >> would be available in the view. > > It is. But favicon_link_tag is not defined in there, at least according > to the docs. Where did you get the idea that this method even exists? > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- 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-/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.
http://apidock.com/rails/ActionView/Helpers/AssetTagHelper/favicon_link_tag Marnen Laibow-Koser wrote in post #968920:> Please don''t top-post. > > Craig Anderson wrote in post #968919: >> I''m just learning rails and trying to learn the rails way. I expected >> that module ActionView::Helpers::AssetTagHelper >> would be available in the view. > > It is. But favicon_link_tag is not defined in there, at least according > to the docs. Where did you get the idea that this method even exists? > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- 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-/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.
Again: please don''t top-post! Insert your replies inline as I have done. Craig Anderson wrote in post #968923:> http://apidock.com/rails/ActionView/Helpers/AssetTagHelper/favicon_link_tag >Read the text in the big blue box. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/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.
Marnen Laibow-Koser wrote in post #968924:> Again: please don''t top-post! Insert your replies inline as I have > done. > > Craig Anderson wrote in post #968923: >> http://apidock.com/rails/ActionView/Helpers/AssetTagHelper/favicon_link_tag >> > > Read the text in the big blue box.Alright, I''ve now learned that the method was introduced in Rails 3.0.0. Your responses strike me as rude, but I have learned somthing.> > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- 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-/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.
Craig Anderson wrote in post #968926:> Marnen Laibow-Koser wrote in post #968924: >> Again: please don''t top-post! Insert your replies inline as I have >> done. >> >> Craig Anderson wrote in post #968923: >>> http://apidock.com/rails/ActionView/Helpers/AssetTagHelper/favicon_link_tag >>> >> >> Read the text in the big blue box. > Alright, I''ve now learned that the method was introduced in Rails 3.0.0. > Your responses strike me as rude, but I have learned somthing.They were not meant to be rude. I was merely trying to figure out why you would expect an apparently nonexistent method to work. I didn''t know that APIdock had that "helpful" (?) feature of displaying methods that don''t actually exist... BTW, I recommend http://www.railsbrain.com for Rails docs. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/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 Thu, Dec 16, 2010 at 11:48 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> BTW, I recommend http://www.railsbrain.com for Rails docs.? Good for historical reference, I guess, but the most recent version there is 2.3.2 ... -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
Hassan Schroeder wrote in post #968935:> On Thu, Dec 16, 2010 at 11:48 AM, Marnen Laibow-Koser > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> BTW, I recommend http://www.railsbrain.com for Rails docs. > > ? Good for historical reference, I guess, but the most recent version > there is 2.3.2 ... >Aaaugh! Mistyped. I meant http://www.railsapi.com . Sorry!> -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassanBest, -- Marnen Laibow-Koser http://www.marnen.rog marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/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.
Marnen Laibow-Koser wrote in post #968937:> > Aaaugh! Mistyped. I meant http://www.railsapi.com . Sorry! >''build your custom package'' at railsapi.com looks like my new goto Rails documentation. Also, I was really not understanding the version information on favicon_link_tag and that had me confused and frustrated. Thanks for your help. -- 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-/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.