Aha :)
Did as you suggested, Mark.
But when I then try this line in the front/index.dryml:
<field-list with="&@bookmarks" fields="title, url"/>
I get this error message: "can't convert String into Integer",
pointing to the same line.
Why is that? if I comment out the line in def index, then I just get
some lines with the text "(Not Available)"...
Thanks again!
Frode
On Feb 7, 2:52 pm, Mark Sobkowicz <[email protected]> wrote:
> Try adding a find to your front controller. In front controller put:
>
> class FrontController < ApplicationController
>
> hobo_controller
>
> def index
> @bookmarks = Bookmark.find(:all)
>
> end
>
> And then try the dryml.
>
> On Feb 6, 2011, at 10:20 PM, FF wrote:
>
>
>
>
>
>
>
> > Hi, all!
>
> > Slowly learning Hobo...
>
> > Now I want to have a field-list for a Bookmark-model (my test project)
> > on the front page. How can I achieve that?
>
> > I tried unsuccessfully to add this in the views/front/index.dryml:
>
> > <field-list fields="Bookmark.url, Bookmark.description,
> > Bookmark.tags"/>
>
> > And with no success also this:
>
> > <do with="&Bookmark">
> > <field-list fields="url, description, tags"/>
> > </do>
>
> > How can I do this?
>
> > Thanks for all your help, folks!
>
> > Frode
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hobo Users" 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
> > athttp://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.