I''ve been trying to follow the example in Railscast #74, http://railscasts.com/episodes/74, but I get an undefined method ''link_to_function'' error. I''m using ROR 2.0. Does anyone know if this function has been moved to a plugin? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Franz Obenhauser wrote:> I''ve been trying to follow the example in Railscast #74, > http://railscasts.com/episodes/74, but I get an undefined method > ''link_to_function'' error. I''m using ROR 2.0. Does anyone know if > this function has been moved to a plugin?I didn''t think it has been removed. See http://api.rubyonrails.com/ for more information. -- 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 -~----------~----~----~----~------~----~------~--~---
It''s included in the API. I''m new to Ruby, do I have to import the class? On Jan 30, 3:32 pm, Le Fish <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Franz Obenhauser wrote: > > I''ve been trying to follow the example in Railscast #74, > >http://railscasts.com/episodes/74, but I get an undefined method > > ''link_to_function'' error. I''m using ROR 2.0. Does anyone know if > > this function has been moved to a plugin? > > I didn''t think it has been removed. > Seehttp://api.rubyonrails.com/for more information. > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Are you trying to use the method in a view? It''s only exposed to views (I think) so make sure you''re not trying to use it in a controller or model. That''s the most likely culprit I can think of... ---Jeremy On Jan 30, 2008 2:37 AM, Franz <franz.obenhauser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > It''s included in the API. I''m new to Ruby, do I have to import the > class? > > On Jan 30, 3:32 pm, Le Fish <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > Franz Obenhauser wrote: > > > I''ve been trying to follow the example in Railscast #74, > > >http://railscasts.com/episodes/74, but I get an undefined method > > > ''link_to_function'' error. I''m using ROR 2.0. Does anyone know if > > > this function has been moved to a plugin? > > > > I didn''t think it has been removed. > > Seehttp://api.rubyonrails.com/for more information. > > -- > > Posted viahttp://www.ruby-forum.com/. > > > >-- http://www.jeremymcanally.com/ My books: Ruby in Practice http://www.manning.com/mcanally/ My free Ruby e-book http://www.humblelittlerubybook.com/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.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 -~----------~----~----~----~------~----~------~--~---
Stupid me. Syntax error. Spelled it link_to_funtion. On Jan 30, 3:53 pm, "Jeremy McAnally" <jeremymcana...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Are you trying to use the method in a view? It''s only exposed to > views (I think) so make sure you''re not trying to use it in a > controller or model. > > That''s the most likely culprit I can think of... > > ---Jeremy > > On Jan 30, 2008 2:37 AM, Franz <franz.obenhau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > It''s included in the API. I''m new to Ruby, do I have to import the > > class? > > > On Jan 30, 3:32 pm, Le Fish <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > Franz Obenhauser wrote: > > > > I''ve been trying to follow the example in Railscast #74, > > > >http://railscasts.com/episodes/74, but I get an undefined method > > > > ''link_to_function'' error. I''m using ROR 2.0. Does anyone know if > > > > this function has been moved to a plugin? > > > > I didn''t think it has been removed. > > > Seehttp://api.rubyonrails.com/formore information. > > > -- > > > Posted viahttp://www.ruby-forum.com/. > > --http://www.jeremymcanally.com/ > > My books: > Ruby in Practicehttp://www.manning.com/mcanally/ > > My free Ruby e-bookhttp://www.humblelittlerubybook.com/ > > My blogs:http://www.mrneighborly.com/http://www.rubyinpractice.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 -~----------~----~----~----~------~----~------~--~---
When in doubt, check the Rails api online: http://api.rubyonrails.org/ On Jan 30, 3:13 am, Franz <franz.obenhau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Stupid me. Syntax error. Spelled it link_to_funtion. > > On Jan 30, 3:53 pm, "Jeremy McAnally" <jeremymcana...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Are you trying to use the method in a view? It''s only exposed to > > views (I think) so make sure you''re not trying to use it in a > > controller or model. > > > That''s the most likely culprit I can think of... > > > ---Jeremy > > > On Jan 30, 2008 2:37 AM, Franz <franz.obenhau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > It''s included in the API. I''m new to Ruby, do I have to import the > > > class? > > > > On Jan 30, 3:32 pm, Le Fish <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > Franz Obenhauser wrote: > > > > > I''ve been trying to follow the example in Railscast #74, > > > > >http://railscasts.com/episodes/74, but I get an undefined method > > > > > ''link_to_function'' error. I''m using ROR 2.0. Does anyone know if > > > > > this function has been moved to a plugin? > > > > > I didn''t think it has been removed. > > > > Seehttp://api.rubyonrails.com/formoreinformation. > > > > -- > > > > Posted viahttp://www.ruby-forum.com/. > > > --http://www.jeremymcanally.com/ > > > My books: > > Ruby in Practicehttp://www.manning.com/mcanally/ > > > My free Ruby e-bookhttp://www.humblelittlerubybook.com/ > > > My blogs:http://www.mrneighborly.com/http://www.rubyinpractice.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 -~----------~----~----~----~------~----~------~--~---