Sha256: 4cac10babf3604a36fbc65b808f5703f7843c3c54a9bb3565e0e6bdad0987abd
Contents?: true
Size: 333 Bytes
Versions: 8
Compression:
Stored size: 333 Bytes
Contents
class LinksController < ApplicationController include SocialStream::Controllers::Objects def create super do |format| format.json { render :json => resource } format.js { render } format.all {redirect_to link_path(resource) || home_path} end end private def allowed_params [:url] end end
Version data entries
8 entries across 8 versions & 2 rubygems