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
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
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 =>
3 matches
Mail list logo