Toys and Tech 5

Posted by Jessica Sun, 30 Sep 2007 03:56:00 GMT

I’ve been so busy lately; ruby group, getting ready to go to New York and blythe con site design have been taking up all of my extra time. So, I’m sure my girls are feeling neglected.

Ok, I guess that answers that question.

Girl, you need to go get some clothes on. You’re going to visit your friends tomorrow, and you can’t go naked.

Anyways, a few lessons learned from ruby group are:
  • if you are being a total idiot & notice that a field appears to be written out to the db (no errors), but isn’t making it into the db, you might have a duplicate field. Just a warning!
  • in the rails script/console, you can use tab complete to view a more complete list of rails methods beginning with some word or part of a word

Essential SVN (for use on the run)
svn propedit svn:ignore db\schema.rb
svn revert -R
svn commit -m "did cool stuff"
svn update
svn co http://tools.assembla.com/svn/atlrug/atlrug01/trunk/atlrug01/ atlrug01 you can’t check out our code unless you are apart of our assembla group, but soon you might be able to, but here’s the repository anyways

Ok, ok! I know you need some TLC; I’m coming.

Recap from Ruby Coding Group: 8-11-07

Posted by Jessica Thu, 27 Sep 2007 00:03:00 GMT

  • Make sure Ruby, Rails, MySql & Subversion are installed and working properly on your machine.
  • Create 2 databases: atlrug01_development & atlrug01_test
  • Login to Assembla where the atlrug coding project 1 is being hosted. You need to be invited to the atlrug project in order to checkout the project with subversion.
  • Checkout the atlrug project: svn co http://tools.assembla.com/svn/atlrug. You will have to enter your assembla password and username in order to check the project out.

Here are two options for syncing the data between development databases in rails:

1. export and import sql—using a command like this one…

mysql -u root -p atlrug01_development < /path/to/your/project/.../atlrug/atlrug01/trunk/atlrug01/db/development_data.sql

2. fixtures + yaml

I placed a rake task in lib/tasks that will take whatever is in the db and dump that into a yaml fixture located in test/fixtures.

After checking out the latest version of the project, you run rake db:migrate & rake db:fixtures:load to import the yaml to your db.

Full instructions here: http://snippets.dzone.com/posts/show/3393


designed by jowensbysandifer