- class BlipsController < ApplicationController
- before_filter :login_required
- respond_to :js
- def create
- @blip = current_user.blips.build(params[:blip])
- @blip.created_at = Time.now
- #respond_to do |format|
- if @blip.save
- respond_with(@blip)
- else
- flash[:notice] = "Message failed to save."
- format.html { redirect_to root_path }
- end
- end
- def destroy
- end
- end