mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Change the form_for not to need a message passed, and adding it to the home page
This commit is contained in:
@@ -2,7 +2,6 @@ class StatusMessagesController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@status_message = StatusMessage.new
|
||||
@status_messages = StatusMessage.sort(:created_at.desc).all
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
%h1 your network stream
|
||||
= render "status_messages/new_status_message"
|
||||
%ul#stream
|
||||
- for post in @posts
|
||||
= render type_partial(post), :post => post
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
= form_for status_message, :remote => true do |f|
|
||||
= form_for StatusMessage.new, :remote => true do |f|
|
||||
= f.error_messages
|
||||
%p
|
||||
/= f.label :message
|
||||
|
||||
Reference in New Issue
Block a user