In the App I am working on people subscribe from universities so they tend to have very standard email addresses. e.g. Durham University = @dur.ac.or or @durham.ac.uk For some of these universities I want to display extra information when the user logs in, but not for others and that information will be university specific i.e. If a user with first.name-VlwAjOFxKoqFxr2TtlUqVg@public.gmane.org logs in I want them to see a Durham University specific imag on their homepagee, but if a user from Newcastle with first.name-6agwQxOQk07RR8QwpCAWVg@public.gmane.org logs in they should see a different image (or no image at all). I would like to try and do this on email suffix recognition rather than asking the user to specify their university at login if there is an elegant way of doing so. All suggestions welcome. Thanks, Dan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Where will the extra information live? In a model, or templates? Is it static or dynamic content, managed or unmanaged? School information can be attached to the user at login (in session, for example), and/or stored permanently. It''s easy enough to extract the school information if login is via email address, or pull it from the database if there are separate user names. On Jan 19, 1:26 pm, DanC <d.m.coleg...-VlwAjOFxKoqFxr2TtlUqVg@public.gmane.org> wrote:> I would like to try and do this on email suffix recognition rather > than asking the user to specify their university at login if there is > an elegant way of doing so.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.