2-25 chars long
alphanumeric and underscores only
disallowed: "growstuff", "admin", "moderator"
removed everything that was there to handle/truncate long usernames
since it's no longer needed.
* dev: (28 commits)
Upgrade bootstrap by running `rails g bootstrap:install`
added .to_i to times to attempt to pass tests on travis
stubbed Time.now to prevent test failures
Added friendly IDs for forum and role
General prettification and making it look nice.
show forum name in post meta
Added a rake task to create an admin user.
hooked roles up to cancan
Added roles, but haven't yet hooked them up to CanCan
PT story 41985889, Hides 'new garden' tab on other member's pages
Add forums to top nav
Display posts in summary on forum page
tests for markdown
post in (or not in) a forum
prettifying forum views
added associations between forums, posts, and members
rails g scaffold Forum
Rearranging password fields
Attempted rearranging settings page, broke something
Upgrade to Rails 3.2.12, after *another* security flaw.
...
Conflicts:
spec/models/member_spec.rb
We have added a sequence for login_name which is similar to the one for
emails in which the member name is incremented each time a new member is
saved.
In addition, we have updated all specs which asked for an explicit
login_name of member1 to use a regex looking only for member and some
digit.
Now only admins can create/edit forums, or mess with roles.
To add an admin user:
rails c
m = Member.find('skud')
r = Role.create(:name => 'admin')
r.members << m
We'll have to do this on the server to bootstrap the admin stuff.
Though actually, we should really write a rake task to generalise this.
We figured that doing without it was more like the simplest thing that
could possibly work.
Note that we edited the migration in place after rolling back. This
would cause problems if anyone had downloaded the code from pozorvlak's
repo the other day and run it, but we're assuming they didn't (since
they wouldn't have got anything interesting out of it anyway.)
This commit sets the default timezone for the app as UTC for both Time
methods and for ActiveRecord. It also removes an unecessary pair of
parentheses attached to a call to `Time.now` which did not match the
style throughout the rest of the project.
[#41633207]
"My Garden" was too generic and hard to test for -- tests like
rendered.should contain "Garden" are far too easy to have a false
positive pass. So I renamed it "Springfield Community Garden" so that
false-positive passes were less likely.