Social Networking

57 views
Skip to first unread message

Sayuj Othayoth

unread,
Jun 24, 2011, 2:16:32 AM6/24/11
to rubyonra...@googlegroups.com
Hi,

I want to create a family website which includes social networking features.
The site should have dynamic articles, news, announcements, events, gallery etc public.
And it should have a social networking part for family members.
Also an admin controller for public contents and social networking administration.

I am familiar with Ruby and RoR.
How can I start with these? Is there any app / cms for this? Will it be good to use TDD?

Thank you
sayuj

Rafal Zdziech

unread,
Jun 24, 2011, 2:47:11 AM6/24/11
to rubyonra...@googlegroups.com

Hi,

You may want to tried something similar on the github. Someone may already done it. Anyway I think it would be good to start with Tdd techniques because it will save your time.

> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>

Bernd Ritter

unread,
Jun 24, 2011, 3:07:01 AM6/24/11
to rubyonra...@googlegroups.com
Hi Sayuj,

try https://joindiaspora.com/ its pretty much what you want, it's open source and it's ROR!

Cheers,
Bernd
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--

exels...@gmail.com

unread,
Jun 24, 2011, 1:52:09 PM6/24/11
to rubyonra...@googlegroups.com
Try some of these:

https://github.com/insoshi/insoshi#readme

http://communityengine.org/

http://lovdbyless.com/

http://www.enginey.com/

Lovd by Less looks pretty good, haven’t had a chance to try it yet tho.

Best,
Pardeep.
Message has been deleted

Tim Shaffer

unread,
Jun 27, 2011, 8:24:44 AM6/27/11
to rubyonra...@googlegroups.com
That's a pretty good name for a social networking site. I feel like I devolve a little bit every time I use Facebook et al.

Peter Hickman

unread,
Jun 27, 2011, 9:12:39 AM6/27/11
to rubyonra...@googlegroups.com
On 25 June 2011 10:18, sukesh <sukes...@gmail.com> wrote:
> TRY MY SOCIAL NETWORKING WEBSITE named DEVOLVE  - social networking
> website for developers. Code is available on http://github.com/devolve/devolve.
>

Something other than the boilerplate README would be useful for people
to get an idea what the code is about

Peter Bell

unread,
Jun 27, 2011, 12:37:56 PM6/27/11
to rubyonra...@googlegroups.com
A User has many teachers. I'm trying to lock down my API. I have a "user.add_teacher teacher" method and want to make that the *only* way to "user.teachers << teacher". Any way to lock down the teachers association so it is read only from outside the user class and only settable within self?

I'm not just looking for attr_protected to avoid mass assignment. I'm specifically looking to ensure that nobody on the team will write "user.teachers << teacher" and bypass all of the additional business logic in the add_teacher method. I know I can do a "find within project" for "teachers <<" but don't want to remember to have to do that.

I know my specs should catch anything that's amiss, and I'm not sure whether this is an idiomatic approach in Ruby/Rails but I'd appreciate any thoughts/suggestions.

Thanks,
Peter


Hassan Schroeder

unread,
Jun 27, 2011, 3:37:43 PM6/27/11
to rubyonra...@googlegroups.com
On Mon, Jun 27, 2011 at 9:37 AM, Peter Bell <pe...@pbell.com> wrote:

> I'm specifically looking to ensure that nobody on the team will write
> "user.teachers << teacher" and bypass all of the additional business
> logic in the add_teacher method.

Maybe you could instead just use the Association callbacks --

before_add, after_add, before_remove, after_remove

to run your business logic on each operation?

FWIW,
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Frederick Cheung

unread,
Jun 27, 2011, 5:30:45 PM6/27/11
to Ruby on Rails: Talk
could you overwrite << in your association proxy ie

class User
has_many :teachers do
def <<(*args)
raise "don't use me!"
end
end
end

?

There are lots of other ways users can add teachers though, eg
user.teachers.build, Teacher.new(:user_id => some_user.id) etc so I
don't thing you can make this completely watertight.

Fred
> Thanks,
> Peter

Andrew Skegg

unread,
Jun 27, 2011, 6:57:11 PM6/27/11
to rubyonra...@googlegroups.com
Peter Bell <peter@...> writes:


It seems there is business logic to check when adding teachers to users which
goes beyond a simple "validates_associated :teacher". Rather than restrict
developers to a single method call, I would investigate custom validations.

See http://guides.rubyonrails.org/active_record_validations_callbacks.html

Sayuj Othayoth

unread,
Jun 28, 2011, 1:07:25 AM6/28/11
to rubyonra...@googlegroups.com
Hi Sukesh,

Is there any administration part for the same?

Sayuj Othayoth

unread,
Jun 30, 2011, 6:54:35 AM6/30/11
to rubyonra...@googlegroups.com
Hi Bernd,

Diaspora is a little crazy to install :)

Diaspora is awesome. But it's developed under rails 2. Do you know, is Diaspora available on rails 3 also?
Or is there any way to convert a rails 2 app to rails 3?

And, shall I customise Diaspora and use for my personal use on internet? Is there any problem for this?

thank you,
sayuj o
signatur_bernd.gif

Amrit Pal Pathak

unread,
Jul 4, 2011, 12:49:49 AM7/4/11
to rubyonra...@googlegroups.com
On Fri, Jun 24, 2011 at 1:52 PM, exels...@gmail.com <exels...@gmail.com> wrote:
Try some of these:

https://github.com/insoshi/insoshi#readme

http://communityengine.org/

http://lovdbyless.com/

http://www.enginey.com/

Lovd by Less looks pretty good, haven’t had a chance to try it yet tho.

     hey
      anybody is using any one from   above  links ?

    Thanks 


kausik bakshi

unread,
Oct 26, 2011, 12:55:40 AM10/26/11
to rubyonra...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


hi 
sayuj


here you find an example of social networking (not admin panel include here)
I think this will help you.

Rails version
2.3.9
ruby
1.8.7

Thanks & Regards
Kausik Bakshi


Everaldo Gomes

unread,
Oct 26, 2011, 7:51:12 AM10/26/11
to rubyonra...@googlegroups.com
Hi!

Two or three months ago someone announced social stream in the list:

thiagocifani

unread,
Oct 26, 2011, 7:56:49 AM10/26/11
to rubyonra...@googlegroups.com
Hello everaldo, this is a promising project! its really great! I think I will use it someday! I loved it!

2011/10/26 Everaldo Gomes <everald...@gmail.com>



--
thiagocifani
Reply all
Reply to author
Forward
0 new messages