success:function(data){
alert(data);
}
2013/3/12 Сергей Соколов <[email protected]>
> Can you show the code that sends the variable to the controller? And code
> that should render this variable.
>
>
> 2013/3/12 nikhil rn <[email protected]>
>
>> Am I trying to send it wrong from the controller? I mean, is my syntax
>> wrong in sending the JSON from controller to the view? I have used such
>> a JSON in other methods in the controller. I have no issues there. But I
>> am not able to understand why I am not able to pass the same to the view
>> using respond_to in controller.
>>
>> Nikhil
>>
>> --
>> 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 unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.