Frederick Cheung wrote:
> On Mar 22, 3:05�pm, Mc Ieong <[email protected]> wrote:
>> � � � � onFailure: function(){
>> � � � � � alert('Something went wrong...')
>> � � � � � }
>> � � � � });
>>
>> The action did get called but the above code always go to "onFailure"
>> part, doesn't anyone konw how the action "check_skills" can return some
>> value back to the Ajax.request call?
>
> What response is it returning ?
>
> Fred
Sorry, I got it wrong: I didn't render anything in the action, now is
okay when I add this statement in the action:
render :js => "alert('Render succeed.')"
Thank you very much!
Ieong
--
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.