Topic: Handler rjs missing? ActionView::MissingTemplate

Hi,

i'm new at this.. and i having some problems to get ajax working

i want to run this template file create.js.rjs with this:

page.replace_html('cart', render(@cart))

But i get these error:
ActionView::MissingTemplate (Missing template line_items/create, application/create with {:handlers=>[:erb, :builder, :coffee], :formats=>[:js, :html], :locale=>[:en, :en]}. Searched in:
  * "/Users/joaomartins/Documents/MAC/Tese/Uteis/Examples/Rails/work/bookex/app/views"

I think the problem is because i dnt have the handler :rjs.. true?
How can i get it?

Thanks

Re: Handler rjs missing? ActionView::MissingTemplate

Hi Support,

I got the same problem. :rjs is missing in the handlers.

Please advice. I am stuck for two days over this.

Thanks

Re: Handler rjs missing? ActionView::MissingTemplate

Hi,

Forgot to add the versions. Please go through below.

Ruby version    1.9.2 (i686-linux)
RubyGems version    1.8.10
Rack version    1.3
Rails version    3.1.0
JavaScript Runtime    Node.js (V8)
Active Record version    3.1.0
Action Pack version    3.1.0
Active Resource version    3.1.0
Action Mailer version    3.1.0
Active Support version    3.1.0

Please help...

Thanks in advance.

Re: Handler rjs missing? ActionView::MissingTemplate

You should install prototype-rails and write

gem 'prototype-rails'

to your gemfile for .ejs-templates using with rails 3.1