When I first started learning ruby on rails I wrote my controller
actions by using if else statements to display error messages in case
something failed a validation. Like:
flash[:notice] = "User was saved"
flash[:error] = "There was an error saving the user"
Im trying to use the beast forum plugin and in the controller actions
there are no if else statements and it looks really clean. like it
@forum.attributes = params[:forum]
Im wondering, does it just rely on validations for the error
handling? And if so, is this good practice?