Tag: 社交网络

如何配置侨民作为我自己的应用程序?

嘿伙计们,我已经在我的Ubuntu 13.10 PC上安装了最新版本的侨民,使用rails 4.1.2和ruby 2.0.0一切正常,但我想将应用程序的名称从侨民改为其他东西。是否有可能做到所以,我是铁路新手请帮忙,谢谢。谢谢

Rails:如何创建多态关系/友谊模型

我想创建一个多态友谊/网络系统。 例如 用户可以请求或请求加入多个模型,例如: 公司 项目 组 联系人(朋友) 一些将是一对多,例如,一个公司雇用用户,但公司有许多雇员。 其他许多人,例如用户有许多项目,项目有很多用户 使用活动记录创建关系并不困难。 中间步骤,请求(邀请)让我感到困惑。 有点搞乱这是我想出来的。 下面的例子将允许我从一个配置文件(用户)向多个模型发出多边形的请求(甚至是一个单词?),包括配置文件模型本身。 这是Controller如何工作的示例。 @company = Company.find(params[:id]) @request = @company.requests.create!(status: “pending”).build_profile @request.profile = current_user 我怎样才能使@company更具动态性,比如说请求加入项目或个人资料(用户)的个人资料(用户)请求与另一个个人资料(用户)成为朋友? 所以我用控制器中的以下代码解决了这个小问题。 requests_controller.rb class RequestsController < ApplicationController before_filter :load_requestable def new @request = @requestable.requests.new end def create @request = @requestable.requests.new(params[:status]) if @request.save redirect_to @requestable, notice: "Request sent." else render :new end […]

Neo4j.rb中的方法“rel_length”不起作用。

我需要得到用户的“朋友的朋友”。 所以, friend(rel_length: 2)不起作用(忽略方法),返回朋友。 class User include Neo4j::ActiveNode … has_many :out, :friend, rel_class: Friend … end class Friend include Neo4j::ActiveRel from_class User to_class User type ‘friend’ property :activity, type: String property :relation, type: String property :token, type: String end

Rails中的社交网络 – 哪个框架

我应该使用: 社区引擎 Insoshi LovdByLess RailsS​​pace 滚我,自己 我希望通过支持移动浏览快速建立社交网络。 虽然我熟悉Ruby&Rails,但我不是专家(已经构建了一些基本的Rails应用程序,已经为企业集成编写了一堆Ruby程序)。 谢谢,skybison

自定义google plus url默认评论

使用谷歌加共享链接时,是否可以默认添加评论? url如下 https://plusone.google.com/_/+1/confirm?hl=en&url=URL_TO_SHARE 我已经trieid添加&message = MESSAGE但这没有帮助。 还尝试过评论和文字

如何在ActiveRecord中进行自反的自我加入关系?

我正在尝试实现一个社交网络风格的友谊模型,我没有太多的运气试图找出那里可用的插件。 如果我自己做的话,我想我会更好地学习Rails。 所以这就是我所拥有的: class User :friend_id, :class_name => ‘Friendship’ has_many :inviter_friends, :through => :invitee_friendships has_many :inviter_friendships , :foreign_key => :user_id, :class_name => ‘Friendship’ has_many :invited_friends, :through => :inviter_friendships end class Friendship < ActiveRecord::Base belongs_to :user //I think something needs to come here, i dont know what end 在我尝试这个时: friend1 = Friend.create(:name => ‘Jack’) friend2 = […]

在Ruby on Rails中获取地址簿以获取Gmail,Yahoo,Hotmail,Twitter和Facebook联系人列表的问题

在搜索时遇到了Contacts插件。 但根据用法,自述文件中描述。 它需要用户名和密码才能获取联系人。 但这不是一个好方法。

最好的Ruby on Rails社交网络框架

我正计划使用Ruby on Rails创建社交网络+ MP3讲座下载/浏览/评论/发现网站。 部分是为了好玩,也是学习Ruby on Rails的一种方法。 我正在寻找一个社交网络框架,我可以将其用作我网站的基础。 我不想重新发明轮子。 在网上搜索我发现了三个这样的框架。 您建议使用这三种中的哪一种?为什么? http://portal.insoshi.com/ http://www.communityengine.org/ http://lovdbyless.com/