<%= form_for @user, :action => resource(:foos) do %>
...
<% end =%>

That will POST the request to '/foos' which will create a foo model
instance.

Is that what you asked?
Balint

On Dec 11, 12:32 am, phatmann <[EMAIL PROTECTED]> wrote:
> I am sure there is a simple answer to this, but I could not find it
> anywhere.
>
> We have a bunch of resource controllers that are working well. We have
> some other controllers that need to access these resources via REST.
> For example, we want to create a new Foo resource via a POST rather
> than access the Foo model directly. I could not find any calls in Merb
> to facilitate this. There is a request() method, but it is part of the
> Test framework. Clearly, I could use Ruby Net::HTTP for this, but I
> just wondered if there was a more merbish way to do it.
>
> Thanks.
>
> ..tony..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to