Latest development. I've changed the ajax call stories/show.html.erb to

<div id='aremark'>
<%= render :partial => 'comment' %>
</div>

    <h5><label for="login">Make a comment:</label></h5>
  <% remote_form_for :comment, :update =>'aremark', 
:url=>story_comments_path(@story) do |form| %>
       <div id="body"><%= form.text_field :body %></div>
       <p><%= submit_tag  'Comment' %></p>

It still creates the comment in the database.

It correctly returns to http://localhost:3000/stories/2

It even updates the 'aremark' div

But it fills it with

Template is missing

Missing template comments/create.erb in view path app/views

Any ideas?


Excuse me while I bang my head on a wall.

In peace Neil
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to