Jose Paez
Jose Paez

Reputation: 847

Rails update model settings without leaving the console

I'm tired of exiting the rails console to update the changes done to the model, re-entering and having to set all variables previously set. Is there a better way to update model settings without leaving the console?

Upvotes: 0

Views: 240

Answers (1)

Zach Haddad
Zach Haddad

Reputation: 26

I think you are looking for the command: reload!

https://api.rubyonrails.org/classes/Rails/ConsoleMethods.html#method-i-reload-21

Upvotes: 1

Related Questions