You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I click on it, the status is changed in my db but it doesn't change on my view unless I perform a refresh.
Oddly if I do it with the "receive" attribute as an input, it works as intended, changing the value on my db and on my view without the need to refreshing the page.
I'm gueesing it is something with my update response. I've tried several ways of responding in my update controller method, here it is the last one I tried before recurring to this here.
finances_controller.rb
def update
@finance = Finance.find(params[:id])
@finance.update(finance_params)
respond_with_bip(@finance)
end
Keep in mind that it works fine with other types of best_in_place (at least with the input one)
The text was updated successfully, but these errors were encountered:
I'm doing a best_in_place for an boolean attribute in my index view table
finance/index.html.erb
If I click on it, the status is changed in my db but it doesn't change on my view unless I perform a refresh.
Oddly if I do it with the "receive" attribute as an input, it works as intended, changing the value on my db and on my view without the need to refreshing the page.
I'm gueesing it is something with my update response. I've tried several ways of responding in my update controller method, here it is the last one I tried before recurring to this here.
finances_controller.rb
Keep in mind that it works fine with other types of best_in_place (at least with the input one)
The text was updated successfully, but these errors were encountered: