Top "Ruby-on-rails-3" questions

Ruby on Rails is an open-source web development framework written in Ruby.

Rails: How can I rename a database column in a Ruby on Rails migration?

I wrongly named a column hased_password instead of hashed_password. How do I update the database schema, using migration …

ruby-on-rails ruby-on-rails-3 migration rename alter-table
Adding a column to an existing table in a Rails migration

I have a Users model which needs an :email column (I forgot to add that column during the initial scaffold). …

ruby-on-rails-3
How to remove a key from Hash and get the remaining hash in Ruby/Rails?

To add a new pair to Hash I do: {:a => 1, :b => 2}.merge!({:c => 3}) #=> {:a => 1, :b =&…

ruby-on-rails ruby ruby-on-rails-3 hashmap ruby-hash
Rails DB Migration - How To Drop a Table?

I added a table that I thought I was going to need, but now no longer plan on using it. …

ruby-on-rails database ruby-on-rails-3 migration rake
Replace words in a string - Ruby

I have a string in Ruby: sentence = "My name is Robert" How can I replace any one word in this …

ruby ruby-on-rails-3
Purge or recreate a Ruby on Rails database

I have a dev Ruby on Rails database full of data. I want to delete everything and rebuild the database. …

ruby-on-rails ruby-on-rails-3 rake
Can't find the 'libpq-fe.h header when trying to install pg gem

I am using the Ruby on Rails 3.1 pre version. I like to use PostgreSQL, but the problem is installing the …

ruby-on-rails ruby-on-rails-3 postgresql rails-postgresql pg
How to make a HTTP request using Ruby on Rails?

I would like to take information from another website. Therefore (maybe) I should make a request to that website (in …

ruby ruby-on-rails-3 http request
How to reverse a 'rails generate'

I want to delete all the files it created and roll back any changes made, but not necessarily to the …

ruby ruby-on-rails-3 rails-generate