forgot to take out a debug line. i kept comments in, but they prevent a new post to be sent from the database to the view. on refresh everything works. also moved comments to its own partial so we can add it to all posts
This commit is contained in:
parent
4402a84c32
commit
b804bdc220
4 changed files with 4 additions and 12 deletions
|
|
@ -9,9 +9,7 @@ class DashboardController < ApplicationController
|
|||
|
||||
|
||||
def receive
|
||||
xml = CGI::unescape(params[:xml])
|
||||
puts xml
|
||||
store_objects_from_xml xml
|
||||
store_objects_from_xml CGI::unescape(params[:xml])
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
= form_for Comment.new, :remote => true do |f|
|
||||
= f.error_messages
|
||||
%p
|
||||
/= f.label :message
|
||||
= f.text_field :text, :value => "dislike!"
|
||||
= f.hidden_field :post_id, :value => post.id
|
||||
= f.submit 'comment', :class => 'button'
|
||||
= f.submit 'comment', :class => 'button'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
%html
|
||||
%head
|
||||
%title
|
||||
= yield(:title) || "diaspora"
|
||||
= "diaspora"
|
||||
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
|
||||
%meta{"http-equiv"=> "X-UA-Compatible", :content =>"chrome=1" }
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,7 @@
|
|||
= post.message
|
||||
%div.time
|
||||
= link_to "#{time_ago_in_words(post.updated_at)} ago", status_message_path(post)
|
||||
%div.comments
|
||||
= render "comments/new_comment", :post => post
|
||||
%ul.comment_set
|
||||
- for comment in post.comments
|
||||
= render "comments/comment", :comment => comment
|
||||
|
||||
= render "comments/comments", :post => post
|
||||
- if mine?(post)
|
||||
= link_to 'Destroy', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue