we want to POST to /status_messages on Publisher submit

This commit is contained in:
danielgrippi 2012-01-17 17:39:12 -08:00
parent b09e76a0ce
commit 641ca9fdd2
2 changed files with 2 additions and 1 deletions

View file

@ -128,6 +128,6 @@ class ApplicationController < ActionController::Base
end
def max_time
params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now
params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now + 1
end
end

View file

@ -31,6 +31,7 @@ app.views.Publisher = Backbone.View.extend({
"photos" : serializedForm["photos[]"],
"services" : serializedForm["services[]"]
}, {
url : "/status_messages",
success : function() {
app.stream.collection.add(statusMessage.toJSON());
}