search for: comment_comment

Displaying 3 results from an estimated 3 matches for "comment_comment".

2006 Aug 14
4
Updating a table with Ajax
...ser''> <b><%= @comment.user.firstname %></b><br/> <span style="font-size: smaller;"><%= @comment.created_at.strftime(''%d %B'') %></span> </div></td> <td><div class=''comment_comment''><%= in_place_editor_field :comment, :comment, {}, { :rows => 10 } %></div></td> <td><%= link_to_remote image_tag(''delete''), { :url=>{ :action=>"delete_comment", :id=>@comment.id},...
2006 Apr 01
10
You have a nil object when you didn''t expect it!
...; "post", :object => @post %> <%= link_to ''Back'', :action => ''list'' %> <h2>Comments</h2> <%= render :partial => "comment/comment", :collection => @comments, :id => @post.id %> This the code in the comment_comment.rhtml <div> <h2> <%= link_to comment.body, :action => ''show'', :id => comment.post_id %></h2> </div> I keep getting the "You have a nil object when you didn''t expect it!" error message. I have tried everything i can thi...
2011 Dec 16
3
PROBLEN IN AJAX USING RJS
...redirect_to view_article_path(params[:user_id], params[:article_id] ) } format.js { render :update do |page| end } end create.rjs ---------- page.insert_html :bottom, :comment, :partial => ''comment'', :object => @comment page[:comment_comment].reset page.replace_html :notice, flash[:notice] _comment.html.erb ------------------- <%= comment.user.email %> <%= comment.comment %> <%= time_ago_in_words(comment.created_at) %> ago so problem is when I submit the form entry is made in database but view article...