Permalink
Browse files

minor updatse

  • Loading branch information...
1 parent 73ffa16 commit 69b5befcc1e0d84de2434141cd59ed7446eea18f @jbasdf jbasdf committed Jan 6, 2010
View
25 README.rdoc
@@ -5,8 +5,29 @@ Add groups to your muck powered site
sudo gem install muck-groups
=== 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.
class Group < ActiveRecord::Base
View
2 Rakefile
@@ -13,11 +13,13 @@ begin
gem.add_development_dependency "shoulda"
gem.add_dependency "sanitize"
gem.add_dependency "aasm"
+ gem.add_dependency "geokit"
gem.add_dependency "friendly_id"
gem.add_dependency "muck-engine"
gem.add_dependency "muck-users"
gem.add_dependency "muck-profiles"
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
end
Jeweler::GemcutterTasks.new
View
10 app/views/muck_group_mailer/invite.html.erb
@@ -1,10 +0,0 @@
-<%= translate('muck.groups.invite_message',
- :name => @name,
- :message => h(@message),
- :group => h(@group.name),
- :group_url => group_url(@group, :host=>GlobalConfig.application_url),
- :membership_url => new_group_membership_url(@group, :host=>GlobalConfig.application_url),
- :inviter_name =>h(@inviter.first_name),
- :inviter_profile_url => profile_url(@inviter, :host=>GlobalConfig.application_url),
- :staff_page_url => "#{GlobalConfig.website_home_url}/who-we-are/twb-staff/",
- :emailer_name => GlobalConfig.emailed_by ) -%>
View
12 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>
View
2 lib/muck_groups.rb
@@ -1,3 +1,5 @@
+require 'aasm'
+
ActionController::Base.send :helper, MuckGroupsHelper
ActiveRecord::Base.class_eval { include ActiveRecord::Acts::MuckGroup }
View
20 locales/en.yml
@@ -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
visiblity: Visibility
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
description: Description
permissions: Requires Permission to Join
View
2 muck-groups.gemspec
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
"app/views/groups/_pending_request.html.erb",
"app/views/groups/_shared_entry.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",
"db/migrate/20091112160332_create_groups.rb",
"lib/active_record/acts/muck_group.rb",
View
3 test/rails_root/config/environment.rb
@@ -24,8 +24,11 @@ def plugins
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'
config.plugin_locators << TestGemLocator
end

0 comments on commit 69b5bef

Please sign in to comment.