Pathfinder online rails app for fun with friends.
- Configure the mailer to create full URLs in emails:
config/environments/{development,test}.rb
config.action_mailer.default_url_options = { host: 'localhost:3000' }
In the production environment it should be your application's full hostname. - Display user session status.
From somewhere in your layout, render sign in and sign out buttons:Signed in as: <%= current_user.email %> <%= button_to 'Sign out', sign_out_path, method: :delete %> <% else %> <%= link_to 'Sign in', sign_in_path %> <% end %>```
- Render the flash contents.
Make sure the flash is being rendered in your views using something like:<% flash.each do |key, value| %> <div class="flash <%= key %>"><%= value %></div> <% end %> </div>```