sadocean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2013-Oct-05 17:09 UTC
ActionController::UnknownFormat when using respond_to do |format|
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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c4fb3a66-7dae-4b5f-b7ce-1268d839b774%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2013-Oct-06 12:14 UTC
Re: ActionController::UnknownFormat when using respond_to do |format|
On 5 October 2013 18:09, <sadocean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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::UnknownFormatYou have not really given us enough information. Show us the contents of the log for the request. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtKaB4T1PqDSoK_ECPTzsSj5Nss9oP8hGmH_5-8fM1gQQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.