2 ms·
Does anybody else see similarity between this authenticate = SApp::AuthenticateUser.authenticate(... action = authenticate.action if action != :login_err
by dgregd 14y ago
Does anybody else see similarity between this
authenticate = SApp::AuthenticateUser.authenticate(...
action = authenticate.action
if action != :login_error
redirect_to "/#{action}"
...
def find_account
@account = SApp::FindAccount.find(@account_subdomain)
end
and this
http://en.wikipedia.org/wiki/Inner-platform_effect http://en.wikipedia.org/wiki/Inner-platform_effect
http://thedailywtf.com/Articles/Soft_Coding.aspx http://thedailywtf.com/Articles/Soft_Coding.aspx
- rubyskills 14y agoDo you have any better way of approaching this? I mainly posted code examples to show the general idea of what I'm trying to describe. My actual code base has a lot of logic locked behind the authentication and which action to take after the user is authenticated (there are about 4 different places they could land). 4 other use cases are then discovered in the underlying app depending on which action they are taken to.
- dgregd 14y ago> Do you have any better way of approaching this? No, but frankly speaking I don't get the idea from the keynote speech. 2012 and there are no example apps of that concept. I don't get it.