Radhames Brito wrote in post #950213:
>> So, something like (with jQuery):
>> $.ajax({ url: "http://myrailsapp.com/some_partial", success: function
>> (data) { $('#destination_element').innerHTML = data })
>>
>> This is, I believe, the proper way to do it.
>>
>>
> would it be
>
"http://myrailsapp.com/mycontroller/some_partial<http://myrailsapp.com/some_partial>"?
Depends on your routes! But you knew that. :)
Yeah, I was just giving a sample URL. I wasn't worried too much about
the exact structure of it.
> makes sense, it jumps one step from the ones im used to, ill tst it when
> i
> get home.
>
> and what do you mean by "(anti)pattern"?
I mean that you're apparently using it as a repeated pattern. I think
it's an antipattern -- something that looks like a good design pattern
at first, but is in fact to be avoided.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
Posted via http://www.ruby-forum.com/.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.