I think this could be done in user/create like

@user.role = "moderator" if current_user.admin?

--
kevin
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Thursday, November 3, 2011 at 5:09 PM, newrails user wrote:

moderator
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 3, '11 at 9:09a
activeNov 4, '11 at 10:26a
posts4
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Newrails user: 2 posts Kevin: 1 post Colin Law: 1 post

People

Translate

site design / logo © 2022 Grokbase