Jan
12
revised How to bookmark the whole file in Vim, not a specific line?
added 4 characters in body
Jan
12
accepted How to bookmark the whole file in Vim, not a specific line?
Jan
12
comment Method definition and naming conventions in Ruby
In @hattenn's code user is looked up by email (and you've changed that). So I believe it's something quite specific to password resetting and should be in PasswordResetsController. params[:id] can also contain some reauthentication token, I am not sure, but anyway most likely it does not make sense outside of PasswordResetsController as well. So I'd suggest to move that all back to the PasswordResetsController.
Jan
12
comment Method definition and naming conventions in Ruby
I agree, that this way of accessing user is better than initializing it in before_action. I believe, before_action should only contain some "cross-cutting" functionality that is easily can be plugged in or unplugged, depending on requirements (changing the functionality, but not affecting the workability of other code). However, you cannot unplug find_user as most likely some code will break after that.
Jan
12
revised Method definition and naming conventions in Ruby
replaced `before_filter` with newer `before_action`
Jan
12
revised Vim : replacing entire word based on partial match search on all lines
added details
Jan
12
revised Vim : replacing entire word based on partial match search on all lines
grammar fixes
Jan
12
asked How to bookmark the whole file in Vim, not a specific line?
Jan
7
awarded Popular Question
Dec
31
awarded Nice Question
Dec
30
awarded Student
Dec
30
awarded Supporter
Dec
25
awarded Supporter
Dec
25
awarded Informed
Nov
13
awarded Nice Answer
Nov
2
awarded Teacher
Oct
13
awarded Supporter
Oct
8
revised Any shortcut to open file in vim?
provided more detailed answer.
Sep
15
awarded Notable Question
Sep
1
awarded Popular Question
1 2 3 4 5