Thursday, December 13, 2012

[Rails] Display array of Hashes in modal ajax

Hi,
I have an array of another array in my controller. The array is
generated based on a data sent in from ajax request.


This is my view code:

$.ajax({
type: 'GET',
url:'/my_Cont_Method',
async: false,
data:{ data:value},
success:function(data){

}

In my controller file,

I have an array of array.

a = {[1,[red,blue]],[2,[green,brown]]}


Input : "1"

How can I display "red and blue" in my modal box? I do not want to use
cookie.



Regards,
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate