Answer the question
In order to leave comments, you need to log in
Ruby on Rails 3 - Ajax preloader?
Good evening! Tell me the rails way to create ajax page content loading, for example, there is a template with a list of products, and until it is loaded, we show the loading indicator. Thanks for answers!
Answer the question
In order to leave comments, you need to log in
when requesting "Next" for a list of products:
<%= link_to_remote "next",
:url => {:controller => "your_controller",
:action => "your_action",
:some_var => "var_value",
},
:html =>{:id => film.id,
:name => "hide_me"},
:method => :post,
:before => "$('#process_pic').show()",
:complete => " $('#process_pic').hide();" %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question