I have been developing galleries for groups, and improving groups a
little. To do it I have made galleries to be polymorphic, and photos
too.
At this moment in groups show page we can see its profile, members and
galleries.
The next step is to make activities polymorphic, to have a
recent_activities for groups, to see who has become a member, or if
photos and galleries has been added...
To make galleries polymorphic I have made a migrations adding
"galleryable_id" and "galleryable_type" columns. For photos, another
migrations adding "photoable_id" and "photoable_type". I'm not sure if
those names are really good. I suppose it may change to "owner", or
any other suggestions?
If anyone could do a bit of beta testing to make any suggestion or to
ask for any improvement it would be great!
All of this can be seen in http://github.com/yuki/insoshi/tree/group_option
Thanks for reading!
> If anyone could do a bit of beta testing to make any suggestion or to
> ask for any improvement it would be great!
II have changed the sample_data.rake to be compliant to the groups
option, so anyone can use it. I supoussed I must do the same in the
demo_data.rake file.
Steps to test group options:
* Download from http://github.com/yuki/insoshi/tree/group_option
* rake db:create:all
* Delete the content of the file
db/migrate/20081015002258_migrate_photo_data.rb (this file makes the
next step fails, so it's better to delete its content. I must see why)
* rake db:sample_data:reload
Doing this you will have the possibility to test the option_group
So you must log in (as a normal user or admin) and you could see de
"Groups" tab. If you log in you must see also a group tab in the
"admin view".
The best thing would be to install my branch in my own machine and all
of you could test the groups, but the machine I have sometimes loose
connection, so at the moment I can't do this :-(
If you can't see the tab after log in, please tell me and I'll see what happend.
Thanks!
Steps to test group options:
* Download from http://github.com/yuki/insoshi/tree/group_option (
git clone git://github.com/yuki/insoshi.git)
* Go to the insoshi directory (cd insoshi)
* Change to the groups branch (git checkout -b groups origin/group_option)
* Create config/database.yml
* rake db:create:all
* Delete the content that is inside self.up and self.down of the file
db/migrate/20081015002258_migrate_photo_data.rb (this file makes the
next step fails, so it's better to delete its content. I must see why)
* rake db:sample_data:reload
* ruby script/server
* login as a normal user (user: mic...@foobar.com password:foobar)
to see the groups tabs and then you can create groups, invite people
(only when a private group), create groups galleries...
Sorry to all the people who tries to install and see it doesn't work.
Those steps works, so I hope you can give another chance :p
Thanks Arvind!