RailsCasts Pro episodes are now free!

Learn more or hide this

pramsay's Profile

GitHub User: pramsay

Comments by

Avatar

Great screencast! However how can I pass a data set to json? Say in my controller index I have @products = Product.where(:status => "active") to initialize my view. In my view I've got a select tag to filter active, pending and inactive products. How can I pass the set of pending or inactive products to json?

Secondly, how do I properly link to an edit path in ProductsDatatable? It gives me a no method error if I do link_to("edit", edit_product_path(product)

Thanks!