On 3 April 2010 12:59, dan
<dansantner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have created the simplest rails app using the apple tutorial:
> http://developer.apple.com/tools/developonrailsleopard.html.
>
> Ok actually I only got halfway through because I really only wanted to
> try out the basic REST services. Long story short I setup a couple
> tables and now I''m trying to use POST to create a table entry with
an
> xml doc. Is that possible with the basic 2 minute setup?
>
> Whenever I curl this: curl --data-urlencode
>
"<event><name>AlvinBirthday</name><budget>10000</budget></event>"
> http://localhost:3000/events.xml
>
> I get a message that it created a record, and it did, it''s just
blank
> entries though.
If you cannot see the problem by code inspection and looking in the
log you could use ruby-debug or other debugging technique to break
into your app in create see what data you have. See the rails guide
on debugging if you don''t know how to do this.
Colin
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.