Tuesday, October 27, 2009

[Rails] Re: newby stuck on tutorial PGError: ERROR: column

Peter Ritchie wrote:
[...]
> rake aborted!
> PGError: ERROR: column "postion" of relation "slides" does not exist
> LINE 1: ..., "slideshow_id", "updated_at", "id", "photo_id",
> "postion")...
>
> Fixtures .yml file:
>
> <% 1.upto(9) do |i| %>
> slide_<%=i%>:
> id: <%=i%>
> postion: <%=i%>
> photo_id: <%=i%>
> slideshow_id: 1
> <% end %>
>
> Snow Leopard, Rails 2.3.4, psql 8.3 gem 1.3.4
>
> Help would be appreciated

Looks like you have a typo in your fixtures file. Is the column really
called "postion", or did you mean "position"?

BTW, fixtures are not good for most testing. Try Machinist or something
similar instead.

>
> Peter

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate