brainfck
brainfck

Reputation: 9376

Using link_to_remote inside of a controller

how can I use link_to_remote inside of a controller?

I have already included ActionView::Helpers::JavaScriptHelper, but still get the error:

undefined method `content_tag'

Thanks!

Upvotes: 0

Views: 491

Answers (1)

Barry Hess
Barry Hess

Reputation: 768

You'll need to discover all of the helpers that need to be included to make it work. For instance, content_tag is part of ActionView::Helpers::TagHelper.

http://www.railsbrain.com/api/rails-2.2.2/doc/index.html?a=M002139&name=content_tag

It may be time to consider an alternative design.

Upvotes: 1

Related Questions