Skip to content

Commit

Permalink
minor updatse
Browse files Browse the repository at this point in the history
  • Loading branch information
jbasdf committed Jan 6, 2010
1 parent 73ffa16 commit 69b5bef
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 33 deletions.
25 changes: 23 additions & 2 deletions README.rdoc
Expand Up @@ -5,8 +5,29 @@ Add groups to your muck powered site
sudo gem install muck-groups sudo gem install muck-groups


=== Add configuration === Add configuration


=== Added models Add the following to environment.rb
config.gem "authlogic"
config.gem "searchlogic"
config.gem "will_paginate"
config.gem "bcrypt-ruby", :lib => "bcrypt"
config.gem "paperclip"
config.gem "acts-as-taggable-on"
config.gem "awesome_nested_set"
config.gem "sanitize"
config.gem "geokit"
config.gem "aasm"
config.gem 'muck-engine', :lib => 'muck_engine'
config.gem 'muck-users', :lib => 'muck_users'
config.gem 'muck-profiles', :lib => 'muck_profiles'
config.gem "muck-solr", :lib => 'acts_as_solr'
config.gem "muck-comments", :lib => 'muck_comments'

Be sure that 'from_email_name' is configured in global_config.yml

from_email_name: 'The guys at my great site'

=== Add models
You will need to create several models in your application to get groups to work. This allows you to add an desired functionality. You will need to create several models in your application to get groups to work. This allows you to add an desired functionality.


class Group < ActiveRecord::Base class Group < ActiveRecord::Base
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -13,11 +13,13 @@ begin
gem.add_development_dependency "shoulda" gem.add_development_dependency "shoulda"
gem.add_dependency "sanitize" gem.add_dependency "sanitize"
gem.add_dependency "aasm" gem.add_dependency "aasm"
gem.add_dependency "geokit"
gem.add_dependency "friendly_id" gem.add_dependency "friendly_id"
gem.add_dependency "muck-engine" gem.add_dependency "muck-engine"
gem.add_dependency "muck-users" gem.add_dependency "muck-users"
gem.add_dependency "muck-profiles" gem.add_dependency "muck-profiles"
gem.add_dependency "muck-comments" gem.add_dependency "muck-comments"
gem.add_dependency "muck-solr"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end end
Jeweler::GemcutterTasks.new Jeweler::GemcutterTasks.new
Expand Down
10 changes: 0 additions & 10 deletions app/views/muck_group_mailer/invite.html.erb

This file was deleted.

12 changes: 12 additions & 0 deletions app/views/muck_group_mailer/invite.plain.html.erb
@@ -0,0 +1,12 @@
<p>Hello <%= @name %>,</p>

<p><%= h(@message) %></p>

<p>Visit the group '<%= link_to h(@group.name), group_url(@group, :host => GlobalConfig.application_url) %>'</p>

<p>Join the group '<%= link_to h(@group.name), new_group_membership_url(@group, :host => GlobalConfig.application_url)%>'</p>

<p><%= link_to "View #{h(@inviter.first_name)}'s profile", profile_url(@inviter, :host => GlobalConfig.application_url) %></p>

<p>Kind Regards,</p>
<p><%= GlobalConfig.from_email_name %></p>
2 changes: 2 additions & 0 deletions lib/muck_groups.rb
@@ -1,3 +1,5 @@
require 'aasm'

ActionController::Base.send :helper, MuckGroupsHelper ActionController::Base.send :helper, MuckGroupsHelper


ActiveRecord::Base.class_eval { include ActiveRecord::Acts::MuckGroup } ActiveRecord::Base.class_eval { include ActiveRecord::Acts::MuckGroup }
Expand Down
20 changes: 0 additions & 20 deletions locales/en.yml
Expand Up @@ -43,26 +43,6 @@ en:
login_or_join: <span class="link-button">{{login_link}}</span> or <span class="link-button">{{join_link}}</span> before joining this group login_or_join: <span class="link-button">{{login_link}}</span> or <span class="link-button">{{join_link}}</span> before joining this group
visiblity: Visibility visiblity: Visibility
tag_list: Group Tags tag_list: Group Tags
invite_message: |-
Hello {{name}},
{{message}}
Visit the group '{{group}}':
{{group_url}}
Join the group '{{group}}':
{{membership_url}}
View {{inviter_name}}'s profile:
{{inviter_profile_url}}
Please feel free to explore our social network, courses, and website. If we can provide
you any assistance, please contact one of our staff by following this link:
{{staff_page_url}} .
Kind Regards,
{{emailer_name}}
news: News news: News
description: Description description: Description
permissions: Requires Permission to Join permissions: Requires Permission to Join
Expand Down
2 changes: 1 addition & 1 deletion muck-groups.gemspec
Expand Up @@ -41,7 +41,7 @@ Gem::Specification.new do |s|
"app/views/groups/_pending_request.html.erb", "app/views/groups/_pending_request.html.erb",
"app/views/groups/_shared_entry.html.erb", "app/views/groups/_shared_entry.html.erb",
"app/views/groups/_shared_uploads.html.erb", "app/views/groups/_shared_uploads.html.erb",
"app/views/muck_group_mailer/invite.html.erb", "app/views/muck_group_mailer/invite.plain.html.erb",
"config/muck_groups_routes.rb", "config/muck_groups_routes.rb",
"db/migrate/20091112160332_create_groups.rb", "db/migrate/20091112160332_create_groups.rb",
"lib/active_record/acts/muck_group.rb", "lib/active_record/acts/muck_group.rb",
Expand Down
3 changes: 3 additions & 0 deletions test/rails_root/config/environment.rb
Expand Up @@ -24,8 +24,11 @@ def plugins
config.gem "awesome_nested_set" config.gem "awesome_nested_set"
config.gem "sanitize" config.gem "sanitize"
config.gem "geokit" config.gem "geokit"
config.gem "aasm"
config.gem 'muck-engine', :lib => 'muck_engine' config.gem 'muck-engine', :lib => 'muck_engine'
config.gem 'muck-users', :lib => 'muck_users' config.gem 'muck-users', :lib => 'muck_users'
config.gem 'muck-profiles', :lib => 'muck_profiles' config.gem 'muck-profiles', :lib => 'muck_profiles'
config.gem "muck-solr", :lib => 'acts_as_solr'
config.gem "muck-comments", :lib => 'muck_comments'
config.plugin_locators << TestGemLocator config.plugin_locators << TestGemLocator
end end

0 comments on commit 69b5bef

Please sign in to comment.