Tagged Questions
6
votes
2answers
77 views
4
votes
4answers
100 views
simplify nested conditonals in ruby
I have this authenticate! method where I am trying to retrieve their account based on the subdomain, then find the user. if user is found & their password is ...
0
votes
2answers
65 views
Refactor if function in ruby/rails [closed]
working on a rails app that doesn't seem to want to run 'Until' or 'While' functions. Having to do the following:
...
2
votes
3answers
178 views
Trying to improve another if/else statement
Is there a way to optimize the following if/else statement?
...
2
votes
3answers
386 views
Refactoring if statement
Is there a better way to do this? im kinda ending up having a lot of if statements. Any hints would be great!
...