Crazy error with hobo_migration

Visto 13 veces
Saltar al primer mensaje no leído

Me

no leída,
8 feb 2010, 19:35:098/2/10
a Hobo Users

Greetings to all [and especially Owen],

I finally got back to updating my old Hobo app. I finally ended up
pasting the old app into a new app bit by bit. That worked well. Now
I'm adding some RSS feeds to the app with rss-client. I found a
sample app -- cool, good to go. Following along with the sample, I do
the following:

sudo script/generate hobo_model_resource item feed_id:integer
title:string link:string

Then I generate and run the hobo_migration. Lookout, nasty errors!

undefined method `to_str' for :string:Symbol
/usr/local/lib/ruby/1.8/fileutils.rb:1408:in `fu_each_src_dest0'
/usr/local/lib/ruby/1.8/fileutils.rb:297:in `link'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1094:in`link'
/opt/swv/app/models/item.rb:8

After much frustration, I changed 'link' to 'address'. Ta da! It
migrated just fine. Is it me?

Thanks! Paul

Matt Jones

no leída,
8 feb 2010, 20:24:248/2/10
a hobo...@googlegroups.com

It's not you - it's a Rake problem. See https://hobo.lighthouseapp.com/projects/8324-hobo/tickets/553
for more details - the offending method there was 'file', but 'link'
has the same issue.

--Matt Jones

Me

no leída,
8 feb 2010, 20:50:458/2/10
a Hobo Users
Thanks! I was really curious.

On Feb 8, 5:24 pm, Matt Jones <al2o...@gmail.com> wrote:
> On Feb 8, 2010, at 7:35 PM, Me wrote:
>
>
>
>
>
> > Greetings to all [and especially Owen],
>
> > I finally got back to updating my old Hobo app.  I finally ended up
> > pasting the old app into a new app bit by bit.  That worked well.  Now
> > I'm adding some RSS feeds to the app with rss-client.  I found a
> > sample app -- cool, good to go.  Following along with the sample, I do
> > the following:
>
> > sudo script/generate hobo_model_resource item feed_id:integer
> > title:string link:string
>
> > Then I generate and run the hobo_migration.  Lookout, nasty errors!
>
> > undefined method `to_str' for :string:Symbol
> > /usr/local/lib/ruby/1.8/fileutils.rb:1408:in `fu_each_src_dest0'
> > /usr/local/lib/ruby/1.8/fileutils.rb:297:in `link'
> > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
> > 1094:in`link'
> > /opt/swv/app/models/item.rb:8
>
> > After much frustration, I changed 'link' to 'address'. Ta da!  It
> > migrated just fine.  Is it me?
>

> It's not you - it's a Rake problem. Seehttps://hobo.lighthouseapp.com/projects/8324-hobo/tickets/553

Owen Dall

no leída,
9 feb 2010, 12:19:099/2/10
a hobo...@googlegroups.com
Welcome back!

-Owen


--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.




--
Thanks,

Owen

Owen Dall
Barquin International
410-991-0811
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos