I know this would be a simple solution to provide for any one of you. I
am new to active record and this is what I have currently done:
puts “connecting to db…”
:adapter => “mysql”,
:host => “localhost”,
:username => “myuser”,
:password => "schumi58", :database => "test"
puts “connection established”
create_table(:testTable) do |t|
t.column :name, :string
I am also referring to Active Record’s rdoc but am not able to make out
how to use the insert statement in the above code. Can anyone help me in
using INSERT statement in my code above?