Answer the question
In order to leave comments, you need to log in
How to update attribute value in mongo via AJAX in Rails?
I have two models: bot.rb and order.rb
I display on the show (bot) page a list of all its orders via
@orders = Order.where(chat_id: @bot.chat_id)
<% @orders.each do |order| %>
<%= order.status %>
<%= order.number %>
<% end %>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question