Never mind. I got it worked out. I had a couple of problems before.

1. I was doing get requests on the url when i knew i needed to be
doing post requests.
2. I had my declaration of the web-method wrong. I should have had

web_method :create_variations
def create_variations
 some code here...
end

For some reason i thought it should work like an autocomplete block
does, guess i was wrong.

Cheers,

Craig

On Nov 13, 3:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> How do I go about getting hobo's web-methods to work? I have a
> products controller and I need a web method to create a bunch of
> product variations. I tried adding this to products_controller.rb...
>
> web_method :create_variations do
>   render :text => "Working"
> end
>
> but if I try to go products/create-variations I get sent to the show
> action for products with create-variations being sent as the id to
> look for and that obviously is not what I need.
>
> I am probably just thinking about this all wrong. If someone could
> point me in the right direction it would be much appreciated.
>
> Cheers,
>
> Craig
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to