we want to POST to /status_messages on Publisher submit
This commit is contained in:
parent
b09e76a0ce
commit
641ca9fdd2
2 changed files with 2 additions and 1 deletions
|
|
@ -128,6 +128,6 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def max_time
|
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
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ app.views.Publisher = Backbone.View.extend({
|
||||||
"photos" : serializedForm["photos[]"],
|
"photos" : serializedForm["photos[]"],
|
||||||
"services" : serializedForm["services[]"]
|
"services" : serializedForm["services[]"]
|
||||||
}, {
|
}, {
|
||||||
|
url : "/status_messages",
|
||||||
success : function() {
|
success : function() {
|
||||||
app.stream.collection.add(statusMessage.toJSON());
|
app.stream.collection.add(statusMessage.toJSON());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue