[Rails] Re: Getting json data to div and partial after ajax call?

2013-06-10 Thread Fernando Jesus
Ok i found the solution: http://stackoverflow.com/questions/7195473/rails-3-why-is-my-postshow-view-showing-all-of-its-comments-database-data-in The problem is in the view perhaps you have = it's the = in the @comments.each tag. It is returning the result of each, which is the whole array. F

[Rails] Re: Getting json data to div and partial after ajax call?

2013-06-06 Thread Fernando Jesus
Have u solve your problem? i have the same issue U_U -- 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 rubyonra

[Rails] When i use live search show an extra output format

2013-06-04 Thread Fernando Jesus
Hi guys, i've been looking for some "light" for this problem, but honestly i dont know where i can find some information about this. I'm using ajax for a live search, so everything works fine. View: Controller: def live_search @lafnuevas = Lafnueva.search params[:q], :page =>