www.un.org/Depts/DGACM/index_spanish.htm 我并不真心实意地确定,如果存在一个单一问题,或者我以错误的方式对待这个问题,但任何建议都将受到高度赞赏。
用户在申请时表示他们获得了特权,并建立了自己的网页,然后可以通过电子邮件邀请同事。
电子邮件的启动代码在结尾。 缩略语为“/user/new/xxxxxxx。
www.un.org/Depts/DGACM/index_spanish.htm 问题: 我需要同事也能够建立一个用户账户,其基本信息是正确的,这样他们就能够进入账户,并打上其角。
When the colleague makes a mistake on the user sign up form, the url forgets there is an activation code, and jumps back with validation messages and a pretty bare url of /users . When the colleague amends their mistakes and clicks sign up, they are submitted as a fully fledged user, not an invited colleague.
之所以出现这种情况,是因为在用户/新网页上有一个条款。
<% if @activation_code %>
Show colleague messages of invitation and happiness
<% else %>
Show fully fledged user ego stroking messages
<% end %>
我在寻找卢尔的密码参数时,是:
map.signup /users/new/:code , :controller => users , :action => new , :code => nil
同我前面说过一样,我是否对待这一完全错误? 这里有一个问题?
UPDATE This Rails Cast Episode Solved nearly all of the problems I was having: Beta Invitations
虽然要区分当事人是否来自邀请,还是我只是利用这一条件:
if !@user.invitation_id.blank?
并且发挥了巨大作用。