Undefined method 'link_to_funtion'

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?

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.

It’s included in the API. I’m new to Ruby, do I have to import the
class?

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 [email protected] wrote:

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

My free Ruby e-book
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

When in doubt, check the Rails api online: http://api.rubyonrails.org/

Stupid me. Syntax error. Spelled it link_to_funtion.

On Jan 30, 3:53 pm, “Jeremy McAnally” [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs