Ruby on Rails 3 — Ajax preloader?

0 like 0 dislike
16 views
Good evening! Tell rails way for creating ajax loading of page content, for example, I have a template with a grocery list, and until he podruzhilsya show a loading indicator. Thanks for the replies!
by | 16 views

2 Answers

0 like 0 dislike
when you request "Next" for a list of products:
\r
\r<%= link_to_remote "next",
:url => {:controller => "your_controller",
:action => "your_action",
:some_var => "var_value",
},
:html =>{:id => film.id
:name => "hide_me"},
:method => :post,
\r:before => "$('#process_pic').show()",
:complete => "$('#process_pic').hide();"
%>
by
0 like 0 dislike
Working with Rails — but the special rails way is not met. Just in
by

Related questions

0 like 0 dislike
1 answer
asked Apr 1, 2019 by Holzfaller
0 like 0 dislike
1 answer
asked Apr 1, 2019 by Holzfaller
110,608 questions
257,186 answers
0 comments
28,667 users