Google Groups Home
Help | Sign in
error at render :yaml
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
yuumi3  
View profile
 More options Aug 20, 3:41 am
From: yuumi3 <yuum...@gmail.com>
Date: Tue, 19 Aug 2008 10:41:59 -0700 (PDT)
Local: Wed, Aug 20 2008 3:41 am
Subject: error at render :yaml
In app/controllers/admin/posts_controller.rb

I think render method has not  :yaml.
Is this code correct ?

      format.yaml {
        render :yaml => Post.find(:all,
          :select => 'id, title',
          :order  => 'created_at DESC'
        ).to_yaml
      }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Shay  
View profile
 More options Aug 21, 5:04 pm
From: Xavier Shay <xavier-l...@rhnh.net>
Date: Thu, 21 Aug 2008 17:04:59 +1000
Local: Thurs, Aug 21 2008 5:04 pm
Subject: Re: error at render :yaml
yuumi3 wrote:
> In app/controllers/admin/posts_controller.rb

> I think render method has not  :yaml.
> Is this code correct ?

>       format.yaml {
>         render :yaml => Post.find(:all,
>           :select => 'id, title',
>           :order  => 'created_at DESC'
>         ).to_yaml
>       }

hmm, there is one for json and xml, but I can't see yaml on rails-doc.org
I won't have a chance to investigate for a few days


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Shay  
View profile
 More options Aug 28, 11:37 am
From: Xavier Shay <xavier-l...@rhnh.net>
Date: Thu, 28 Aug 2008 11:37:16 +1000
Local: Thurs, Aug 28 2008 11:37 am
Subject: Re: error at render :yaml
Is anyone using this YAML stuff?
I was going to be but never got around to finishing my blog-from-VIM thing.

I'm thinking it best to pull it out for now (which will help upgrade
enki to rails 2.1), then do the API properly later - AtomPub is likely
the best option.

Thoughts?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google