ActionController::UnknownFormat when using respond_to do |format|

650 views
Skip to first unread message

sado...@gmail.com

unread,
Oct 5, 2013, 1:09:52 PM10/5/13
to rubyonra...@googlegroups.com

I am using jquery slider ui and rails 4. I am trying to implement a price slider for my product page. However, i have run into a problem. I have tried to search around but i cant seems to find a solution that helps. Hope someone could help me as I am quite new to ruby on rails. Thanks.

Here are my code

products_controller.rb

 respond_to do |format|
  format.js do
    render :update do |page|
      page.replace_html 'x_product_list', :partial => 'products/products_list', :locals => { :product => @product }

with this error:

ActionController::UnknownFormat

Colin Law

unread,
Oct 6, 2013, 8:14:22 AM10/6/13
to rubyonra...@googlegroups.com
You have not really given us enough information. Show us the contents
of the log for the request.

Colin
Reply all
Reply to author
Forward
0 new messages