Sunday, October 6, 2013

Re: [Rails] ActionController::UnknownFormat when using respond_to do |format|

On 5 October 2013 18:09, <sadocean@gmail.com> 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::UnknownFormat

You 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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate