Action that refreshes the current page
问题 I want to create an action in a Rails controller that does something in the db and then just refreshes the current page. Example: Controller: A Views: A, B. controller A is the following: def action1 somethingToTheDB end view A is the following: -html- -body--link to action 1--/body- -/html- view B is the following -html- -body--link to action 1--/body- -/html- If I come to action 1 from view A I want to refresh view A, if I come from view 2 I want to refresh view 2. Is that possible without