I tried Walters suggestion and put my display-table in a partial; this
is what the method looked like
def index
if(params[:q])
@games = Game.search(params[:search])
else
render :partial => 'search_results'
end
end
But it would cause me a NoMethod Error... it says that the "each"
function was not defined, but why?
Rolando Garros suggestion is simply not changing anything, maybe I'm not
implementing it correctly...
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment