Tag: ruby

1875 How to write a switch statement in Ruby 2009-06-04T01:18:00.793

1145 Check if a value exists in an array in Ruby 2009-12-31T17:49:03.317

1010 How to convert a string to lower or upper case in Ruby 2009-06-20T00:16:00.743

1003 A concise explanation of nil v. empty v. blank in Ruby on Rails 2009-05-19T22:51:36.560

979 How to make --no-ri --no-rdoc the default for gem install? 2009-09-04T21:48:59.303

972 How to pass command line arguments to a rake task 2009-05-05T16:27:50.517

964 How do I get the current absolute URL in Ruby on Rails? 2010-01-29T22:32:44.613

926 Calling shell commands from Ruby 2008-08-05T12:56:52.770

903 What is attr_accessor in Ruby? 2010-12-06T21:07:06.037

899 Understanding the Rails Authenticity Token 2009-06-02T20:01:38.163

821 Why is it bad style to `rescue Exception => e` in Ruby? 2012-04-06T19:17:47.960

763 class << self idiom in Ruby 2010-03-24T03:02:42.203

731 What does %w(array) mean? 2009-08-13T21:23:47.170

722 How to get a random number in Ruby 2008-10-13T18:07:24.043

711 How to install a specific version of a ruby gem? 2013-06-10T14:37:15.097

693 How to generate a random string in Ruby 2008-09-17T22:24:44.803

668 Multi-Line Comments in Ruby? 2010-06-07T13:11:05.933

617 How to check whether a string contains a substring in Ruby? 2011-11-24T14:21:15.703

570 Equivalent of "continue" in Ruby 2010-10-24T19:36:34.750

553 Difference between rake db:migrate db:reset and db:schema:load 2012-04-24T16:11:32.397

549 Checking if a variable is defined? 2008-11-13T23:14:05.657

541 How can I "pretty" format my JSON output in Ruby on Rails? 2008-09-17T19:25:17.310

535 Match all occurrences of a regex 2008-09-17T05:46:26.047

531 How to check if a specific key is present in a hash or not? 2010-12-24T22:02:13.947

530 How can I remove RVM (Ruby Version Manager) from my system? 2010-08-24T16:26:32.893

527 How to sum array of numbers in Ruby? 2009-10-08T16:04:57.870

526 How to drop columns using Rails migration 2010-05-14T00:02:54.707

504 How do I pick randomly from an array? 2010-08-14T05:26:49.963

502 What's the difference between equal?, eql?, ===, and ==? 2011-08-23T06:13:58.123

500 Ruby function to remove all white spaces? 2009-10-28T01:53:02.550

498 How to write to file in Ruby? 2010-05-06T01:11:39.523

485 Begin, Rescue and Ensure in Ruby? 2010-02-03T11:54:15.120

484 Why use Ruby's attr_accessor, attr_reader and attr_writer? 2011-02-18T21:34:51.927

471 Undo scaffolding in Rails 2009-06-08T04:33:42.487

471 How to remove a key from Hash and get the remaining hash in Ruby/Rails? 2011-06-03T13:19:23.573

465 What does map(&:name) mean in Ruby? 2009-08-01T17:35:58.873

461 Why are exclamation marks used in Ruby methods? 2009-03-04T20:02:28.443

452 How to redirect to a 404 in Rails? 2010-03-05T09:52:55.710

450 Installing gem or updating RubyGems fails with permissions error 2013-01-30T15:10:14.503

446 Error installing mysql2: Failed to build gem native extension 2010-08-31T10:54:58.307

442 Ruby: kind_of? vs. instance_of? vs. is_a? 2010-10-08T18:28:11.640

433 What is the difference between include and require in Ruby? 2008-11-25T17:12:31.187

426 When to use RSpec let()? 2011-03-19T02:10:04.403

423 Execute a command line binary with Node.js 2013-12-17T19:56:26.463

422 How do I reverse a 'rails generate'? 2010-11-12T03:23:59.693

418 Is there a "do ... while" loop in Ruby? 2008-09-25T23:15:03.873

414 How to Uninstall RVM? 2010-10-16T18:42:25.663

403 How do you add an array to another array in Ruby and not end up with a multi-dimensional result? 2009-11-26T04:23:27.233

397 Difference between a class and a module 2008-09-30T02:11:29.867

390 When monkey patching a method, can you call the overridden method from the new implementation? 2010-12-17T11:43:08.223

388 Difference between map and collect in Ruby? 2011-03-10T02:19:40.160

387 How to break out from a ruby block? 2009-09-10T00:00:52.653

384 How to run Rake tasks from within Rake tasks? 2009-02-23T15:13:16.637

384 Rails I18n validation deprecation warning 2013-12-03T20:52:25.660

382 How to map with index in Ruby? 2011-01-15T01:34:34.580

381 What does 'require: false' in Gemfile mean? 2011-01-26T01:46:41.520

376 What is the easiest way to duplicate an activerecord record? 2008-09-12T21:48:04.140

376 What is Ruby's double-colon `::`? 2010-06-09T20:03:36.110

369 What is the difference between include and extend in Ruby? 2008-10-01T05:40:58.463

368 How do you find a min / max with Ruby? 2009-08-31T20:53:39.477

351 Rails 4: List of available datatypes 2013-07-29T07:19:46.047

347 Tell Ruby Program to Wait some amount of time 2009-08-25T18:07:41.997

344 How do I get the name of a Ruby class? 2009-05-05T18:13:35.503

336 Should I use alias or alias_method? 2011-01-21T19:49:54.533

336 Rails update_attributes without save? 2011-07-21T01:22:06.840

333 Ruby: Can I write multi-line string with no concatenation? 2010-02-25T20:48:42.107

332 gem install: Failed to build gem native extension (can't find header files) 2010-11-29T13:58:14.690

332 Ruby, Difference between exec, system and %x() or Backticks 2011-06-14T03:59:14.020

325 When to use lambda, when to use Proc.new? 2008-08-03T06:40:54.120

321 Best way to require all files from a directory in ruby? 2009-04-09T17:00:15.430

320 How can I install a local gem? 2008-10-20T22:32:17.623

319 Rails :include vs. :joins 2009-07-30T19:00:51.970

319 Uninstall old versions of Ruby gems 2011-05-05T18:30:35.157

319 How to convert a unix timestamp (seconds since epoch) to Ruby DateTime? 2011-10-19T03:55:46.527

316 String concatenation in Ruby 2008-12-18T13:04:21.367

316 What does "WARN Could not determine content-length of response body." mean and how to I get rid of it? 2011-08-16T17:28:44.667

315 How can I specify a local gem in my Gemfile? 2010-12-20T08:24:20.873

315 What is the difference between <%, <%=, <%# and -%> in ERB in Rails? 2011-11-03T14:36:08.933

313 homebrew not working on OSX 2014-07-09T11:53:42.137

311 How to find where a method is defined at runtime? 2008-10-06T18:44:24.610

310 Rails 4: before_filter vs. before_action 2013-05-13T10:26:26.640

306 What is the best method of handling currency/money? 2009-06-19T20:36:18.160

304 Parsing a JSON string in Ruby 2011-03-23T19:39:08.353

303 What is the "right" way to iterate through an array in Ruby? 2008-11-22T00:38:19.963

298 How do I parse JSON with Ruby on Rails? 2009-12-01T14:58:01.967

298 Ruby: Calling class method from instance 2010-03-27T01:48:01.340

297 Ruby ampersand colon shortcut 2009-12-25T11:35:57.353

295 Map and Remove nil values in Ruby 2012-11-21T02:29:13.470

293 In Ruby, how do I skip a loop in a .each loop, similar to 'continue' 2010-11-19T23:32:30.273

293 How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite? 2016-07-05T01:33:41.743

292 What does ||= (or-equals) mean in Ruby? 2009-06-15T11:25:13.147

291 How to convert a ruby hash object to JSON? 2010-07-06T05:47:01.487

290 Best practices with STDIN in Ruby? 2008-11-07T19:14:51.623

289 Getting output of system() calls in Ruby 2009-03-27T15:12:54.343

289 Get names of all files from a folder with Ruby 2009-11-18T12:33:47.703

289 How can I delete one element from an array by value 2012-04-05T19:19:18.110

284 Enums in Ruby 2008-09-16T19:02:09.073

283 Remove duplicate elements from array in Ruby 2011-12-03T05:23:06.073

279 Does ruby have real multithreading? 2008-09-11T09:01:36.003