ruby 2519

  1. How to write a switch statement in Ruby?
  2. Check if a value exists in an array in Ruby
  3. How to make --no-ri --no-rdoc the default for gem install?
  4. How to convert a string to lower or upper case in Ruby
  5. How to pass command line arguments to a rake task

  6. How do I get the current absolute URL in Ruby on Rails?
  7. A concise explanation of nil v. empty v. blank in Ruby on Rails
  8. Understanding the Rails Authenticity Token
  9. Calling shell commands from Ruby
  10. What is attr_accessor in Ruby?
  11. Why is it bad style to `rescue Exception => e` in Ruby?
  12. class << self idiom in Ruby
  13. How to get a random number in Ruby
  14. What does %w(array) mean?
  15. How to generate a random string in Ruby
  16. How to install a specific version of a ruby gem?
  17. Multi-Line Comments in Ruby?
  18. How to check whether a string contains a substring in Ruby?
  19. Equivalent of “continue” in Ruby
  20. Checking if a variable is defined?
  21. How can I remove RVM (Ruby Version Manager) from my system?
  22. Difference between rake db:migrate db:reset and db:schema:load
  23. Match All Occurrences of a Regex
  24. How can I “pretty” format my JSON output in Ruby on Rails?
  25. How to sum array of numbers in Ruby?
  26. How to drop columns using Rails migration
  27. How to check if a specific key is present in a hash or not?
  28. How do I pick randomly from an array?
  29. What's the difference between equal?, eql?, ===, and ==?
  30. Ruby function to remove all white spaces?
  31. How to write to file in Ruby?
  32. Undo scaffolding in Rails
  33. Begin, Rescue and Ensure in Ruby?
  34. Why use Ruby's attr_accessor, attr_reader and attr_writer?
  35. What does map(&:name) mean in Ruby?
  36. Error installing mysql2: Failed to build gem native extension
  37. How to redirect to a 404 in Rails?
  38. Why are exclamation marks used in Ruby methods?
  39. How to remove a key from Hash and get the remaining hash in Ruby/Rails?
  40. What is the difference between include and require in Ruby?
  41. Ruby: kind_of? vs. instance_of? vs. is_a?
  42. How do I reverse a 'rails generate'?
  43. Installing gem or updating RubyGems fails with permissions error
  44. When to use RSpec let()?
  45. Is there a “do … while” loop in Ruby?
  46. Howto Uninstall RVM
  47. Rails I18n validation deprecation warning
  48. How to run Rake tasks from within Rake tasks?
  49. How to break out from a ruby block?
  50. How do you add an array to another array in Ruby and not end up with a multi-dimensional result?