Forum: Ruby on Rails ActionController::UnknownFormat when using respond_to do |format|

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
41b9e342e298a635f9d79de01e256c92?d=identicon&s=25 Eugene T. (eugene_t)
on 2013-10-06 13:23
(Received via mailing list)
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
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2013-10-06 14:16
(Received via mailing list)
On 5 October 2013 18:09,  <sadocean@gmail.com> wrote:
>   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

You have not really given us enough information.  Show us the contents
of the log for the request.

Colin
This topic is locked and can not be replied to.