Here rails thinks that you have a route like /families/:id and you are doing a GET to the url of /families/hello. So rails thinks that you mean that 'hello' is the id of a Family record and goes to the show
action.
If you go to your terminal and run rake routes |grep families
you will see all of the routes you have configured for families and be able to adjust till you get the correct one. You should also take note of the http method which tells you POST for your current configuration in which case you have to use
<%= link_to "hello", families_hello_path, method: :post %>
but if you aren't changing data in your :hello
action the right solution would be go change your method in your config/routes.rb
file to read
get '/families/hello', to: 'families#hello' # Note changing 'post' to 'get' in the front.