On Tue, Jun 23, 2009 at 1:52 AM, LearnByDoing <[email protected]> wrote:
> >> GeoDatum.find_by_zip_code(95035) > SyntaxError: compile error > 1. class CreateGeoData < ActiveRecord::Migration > 2. def self.up > 3. create_table :geo_data do |t| > 4. t.column :zip_code, :string You might want to try this passing a string as an argument, as you've defined the column in your table :-) -- Hassan Schroeder ------------------------ [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

