Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 560 Vote(s) - 3.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
# TODO in rails

#1
I had read through a rails book and once found we can add # TODO: and some # stuff in codes, so we can you some rake cmd to look back.

My problems is I can't find where are those "# stuff" and "rake cmd" I google and search around, but can't find and don't know what keywords to search.

Reply

#2
You can use `# TODO`, `# FIXME`, and `# OPTIMIZE` and you can easily get all of these with the following rake task: `rake notes`

In addition to the default annotations, you can always specify and search for your own annotations:

rake notes:custom ANNOTATION=ZOMG
Reply

#3
btw, you need to run that command from the root dir of your rails app. Also, you can run:

rake -T

to get a full list of the tasks in your rails' Rakefile


Reply

#4
grep -rn "# TODO" .
Reply

#5
rake notes:todo
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through